I’m trying to figure out the HTMLENTITIES widget. When I set in my TV -> Widget -> HTMLENTITIES, the special chars will be display correctly. However, when I pass my TV into a Widget, then the htmlentities will be ignored. I have also tried using this code:
<?php
$strInputName = "$sendString";
$name = htmlentities($strInputName);
$modx->setPlaceholder('firstName', $name);
return $modx->getChunk('This');
?>
Where $sendString comes from -> [!mySnippetName? &sendString=`[*myTVwithHTMLwidget*]`!]