entity_encoding : "raw", "names" or "numeric"
preformatted : false verify_html : false apply_source_formatting : false entities : "160,nbsp,38,amp,34,quot,162,cent,8364,euro,163.... cleanup: flase
<a href="url">
<a href=& q u ot ;url& q u ot ;>
& q u ot ;
& r s q u o ;
$cleaners = array(
'"' => '& q u ot ;'
);
$content = $resource->get('content');
foreach ($cleaners as $pattern => $replacement){
$content = preg_replace($pattern,$replacement,$content);
}
$resource->set('content',$content);
$resource->save();
?>$content = str_replace('"', '& q u o t e', $content);tinymce.EditorManager.init({
preformatted : false
verify_html : false,
onchange_callback : function(inst){
var $inst = $('#'+inst.id);
$inst.val($inst.val().replace('"','"'));
},
});
I want to do that because i use javascript and modx's tv to display content with tabs (synopsis, presse, festival...) like this :
) and is very simple to use. But i feel like i'm so close to get what i want, everything is ready on this website. So before trying your system or anything else i juste would like to make this replace plugin working.
<div id="presse" style="display: none;">[[*presse]]</div>
document.getElementById("presse").innerHTML,