allowedTitleHtml to allow bold and strong
-
Is there a better way for me to allow the use of bold tags <b> and <strong> in the newsletter body headlines? The only way I got it working is by editing the PostTransformerContentsExtractor.php file like this:
$allowedTitleHtml = [
‘a’ => [
‘href’ => [],
],
‘li’ => $commonAttributes,
‘h1’ => $commonAttributes,
‘h2’ => $commonAttributes,
‘h3’ => $commonAttributes,
‘strong’ => array(),
‘b’ => array(),
];But this means messing with the plugin files and breaks the plugin automatic update flow. Is there an option in the UI to address this that I’m missing? Or, in alternative, a way to do this code override without messing with the plugin files?
Thanks.
The topic ‘allowedTitleHtml to allow bold and strong’ is closed to new replies.