
Open .\lot\x\comment.hint\state.php
file, then replace the default comment hint state as you wish:
<?php
return [
'content' => 'Some HTML tags are allowed in the comment body.'
];
To make the comment hint even more dynamic, you can also specify it using the extension state modifier:
<?php
if ($is_comment_use_markdown) {
$hint = 'Please use Markdown syntax in the comment body. All HTML tags will be removed!';
} else {
$hint = 'Some HTML tags are allowed in the comment body.';
}
State::set("x.comment\\.hint.content", $hint);
0 Comments
No comments yet.