Stiamo convertendo un vecchio CMS utilizzando Mustachejs. Il corpo del contenuto contiene alcuni elementi HTML:Mustachejs esegue il markup html come html
<strong>Mickey Mouse</strong> is a funny animal cartoon character created in 1928 by Walt Disney.
Noi applichiamo il valore di Mustachejs come {{Descrizione}}
L'output di rendering è
<strong>Mickey Mouse</strong> is a funny animal cartoon character
created in 1928 by Walt Disney.
Mustachejs letteralmente mostra il valore così com'è nel database.
Come si può ottenere a Mustachejs il rendering della markup html come html?
Risultato desiderato
Topolino è un personaggio divertente cartone animato animale creato nel 1928 da Walt Disney.
Perfetto ... così facile. Loving MoustacheJS finora. –
Nota che quando usi le parentesi graffe triple con l'input dell'utente, devi fare attenzione a disinfettarlo prima del rendering. – bobthecow
E dovresti assolutamente fare * qualunque cosa * @bobthecow dice riguardo a Mustache! – Popnoodles