...
<wmfn:filterHTMLTags
> - Filters the HTML. Passed tags are allowed, other tags are removed from the HTML. Example usage:
Code Block | ||
---|---|---|
| ||
<wm<c:presentationPropertyset var="tableTagFilterimagesFilter" labelvalue="tableTagFilterfigure,img,figcaption" /> <c:set var="cellValueallImages" value="${wmfn:filterHTMLTags(tableCell.contentmyContent, tableTagFilterimagesFilter)}" /> |
...
filterHTMLTagsAndAttributes
<wmfn:filterHTMLTagsAndAttributes>
- Filters the HTML. Passed tags and attributes are allowed, other tags and attributes are removed from the HTML. Example usage:
Code Block | ||
---|---|---|
| ||
Create an overview of only the a links on an html page: ${wmfn:filterHTMLTagsAndAttributes(myHtmlToFilter, 'a', 'href')} Extract all images from of an html page: ${wmfn:filterHTMLTagsAndAttributes(myHtmlWithImages, 'figure,img,figcaption,a', 'src,width,height,href')} Remove any styling from the forms in content: ${wmfn:filterHTMLTagsAndAttributes(myStyledForms, 'form,input,fieldset,textarea,label,select,option', 'action,method,type,value,name,for')} |
...
formPart
<wm:formPart>
- This tag retrieves a form part using its alias as the search criteria. Example usage:
...