cleanup html tags Developer Jahia 7.3 Jahia 8

How to convert HTML code to text


I want to extract long description in a list


An easy way is to use the removeHtmlTags function. It works like this:

<%@ taglib prefix="functions" uri="" %>
<c:set var="myText" value="${}"/>

You can also use this static function org.jahia.taglibs.functions.Functions.removeHtmlTags from a groovy script!