Welcome! » Log In » Create A New Profile

HTML Purifier und Mustache Template

Posted by Charlie 
HTML Purifier und Mustache Template
December 22, 2015 08:06AM

Hallo @alle

Gibt es einen Weg Mustache Template zu parsen vor der Ausgabe?

Es klappt bis jetzt das er

<div>
{{Datum}}
</div>

aber dies nicht

<div id="{{id}}">
</div>

Ausgabe :

<div>
</div>

Hello everyone Is there a way to parse Mustache template prior to the issue ?

It folds up to now

<div>
{{Datum}}
</div>

but this is not

<div id="{{id}}">
</div>

Output :

<div>
</div>

grüß Charlie

Re: HTML Purifier und Mustache Template
December 22, 2015 10:28AM

Best policy is to substitute mustache BEFORE running HTML Purifier.

Author:
Your Email:

Subject:

HTML input is enabled. Make sure you escape all HTML and angled brackets with &lt; and &gt;.

Auto-paragraphing is enabled. Double newlines will be converted to paragraphs; for single newlines, use the pre tag.

Allowed tags: a, abbr, acronym, b, blockquote, caption, cite, code, dd, del, dfn, div, dl, dt, em, i, ins, kbd, li, ol, p, pre, s, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var.

For inputting literal code such as HTML and PHP for display, use CDATA tags to auto-escape your angled brackets, and pre to preserve newlines:

<pre><![CDATA[
Place code here
]]></pre>

Power users, you can hide this notice with:

.htmlpurifier-help {display:none;}

Message: