Hello Team,
I have to replace some html tags in the page content. Like </ul><br> and replaceAll() with </ul> only.
For me in normal Java code below are working.
p_block_code is a String
System.out.println(p_block_code.replaceAll("(.*)</ul>\r\n<br>(.*)", "</ul>"));
System.out.println(p_block_code.trim().replaceAll("<\\/ul>[\\n\\r\\s]+<br>", "</ul>"));
How to make it wok inside FS template? A i missing any parsing here.
$CMS_IF(!#content.isEmpty)$
$CMS_IF(#content.toString.trim.contains("</ul>"))$
$CMS_VALUE(#content.toString.trim.replaceAll("</ul>[\n\r\s]+<br>", "</ul>"))$
$CMS_ELSE$
$CMS_VALUE(#content)$<br />
$CMS_END_IF$
$CMS_END_IF$
For the above FS code is not working properly for replaceAll() method.
Thank you.