Until Revo 2.1 I used the followed plugin to not parse MODx Tags:
function replace_modxtags($matches){
global $modx;
$code_entities_match = array('[', ']','{', '}');
$code_entities_replace = array('[',']','{','}');
$code = str_replace($code_entities_match,$code_entities_replace,$matches[1]);
return '<pre'.$code.'</pre>';
}
$modx->documentObject['content']=preg_replace_callback("#<pre(.*?)</pre>#s", "replace_modxtags", $modx->documentObject['content']);Now with 2.1.3 this plugin doesn’t work and MODx tags are parsed.
If I write:
<pre class="brush: js">
[[!AdvSearchForm]]
</pre>
Now I get the code of the form
Which is the better way to display MODx Tags without parsing ? I probably missing this information.