SPIP

[ar] [ast] [bg] [br] [ca] [co] [cpf] [cs] [da] [de] [en] [eo] [es] [eu] [fa] [fon] [fr] [gl] [id] [it] [ja] [lb] [nl] [oc] [pl] [pt] [ro] [ru] [sk] [sv] [tr] [uk] [vi] [zh] Espace de traduction

Download

|entites_html

July 2010 — updated on : June 2010

All the versions of this article:


The |entites_html filter is applied to a text tag and will translate the HTML rendition of that tag by transforming into HTML entities any constituent characters that do not belong to the page’s charset, as well as any ", < and >.
This is used to insert the text of a tag into a <textarea> </textarea> without causing any problems.

For example, if we start with a #DESCRIPTIF tag which returns the following HTML source: 2 is "greater" than 1 & is written as: 2 > 1,

<textarea>[(#DESCRIPTIF|entites_html)]</textarea>

would return the following HTML source: <textarea>2 is &quot;greater&quot; than 1 &amp; is written as: 2 &gt; 1</textarea>


Show the template of this page Site powered by SPIP | Translation area | Private area