Hi everyone,
I’m Darshan Hiranandani, looking for a way to remove all HTML tags from a summary, but without having to manually strip each tag one by one. Ideally, I’d like to use a regular expression for this task. For example, something like:
${s.result.metaData["c"]!?replace("<[a-zA-Z\/][^>]*>", "", "g")}
The data I’m working with comes from a database and is rich text, so I can't just use <#noescape> because truncating it can cause layout issues (like incomplete tags such as ), leading to broken front-end rendering.
Has anyone encountered a similar issue or have suggestions on how to effectively strip HTML tags while preserving the content properly? Any help would be greatly appreciated!
Thanks!
Regards
Darshan Hiranandani