lucianovalenca
3/21/2018 - 6:17 PM

TinyMCE

Evitar converter acentos em códigos html: @link: https://www.tinymce.com/docs-3x/reference/configuration/Configuration3x@entity_encoding/

tinymce.init({
  selector: "textarea",
  entity_encoding: "raw",
  toolbar: "bold italic underline"
});

With setting "entity_encoding" to "raw", all characters will no longer be stored as named entities except the characters " & < and > having a special meaning in HTML. If "entity_encoding" is set to "named", the named entities such as ä are used. With setting "entity_encoding" to "numeric", the Unicode encoding (numeric entities) such as ä is used. By the way, you can use PHP to free your text from the named entities:

html_entity_decode('über');

For the opposite effect, you can use htmlentities() and htmlspecialchars().