Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

<wmfn:filterHTMLTags> -  Filters the HTML. Passed tags are allowed, other tags are removed from the HTML. Example usage:

 

Code Block
themeEclipse
<wm<c:presentationPropertyset var="tableTagFilterimagesFilter" labelvalue="tableTagFilterfigure,img,figcaption" />

<c:set var="cellValueallImages" value="${wmfn:filterHTMLTags(tableCell.contentmyContent, tableTagFilterimagesFilter)}" /> 

Back to Top

 

...

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
themeEclipse
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')}

 

Back to Top

 

...

formPart

<wm:formPart> -  This tag retrieves a form part using its alias as the search criteria. Example usage:

...