Skip to content

Allow HTML in Message Template (CFM-390) #269

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/composer.json
Expand Up @@ -12,7 +12,8 @@
"doctrine/dbal": "^3.3",
"league/container": "^4.2.0",
"mobiledetect/mobiledetectlib": "^2.8",
"psr/log": "^2.0"
"psr/log": "^2.0",
"symfony/html-sanitizer": "^7.2"
},
"require-dev": {
"cakephp/bake": "^2.6",
Expand Down
316 changes: 313 additions & 3 deletions app/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions app/resources/locales/en_US/error.po
Expand Up @@ -190,9 +190,15 @@ msgstr "When this value is selected, {0} cannot be empty"
msgid "input.invalid"
msgstr "Invalid character found"

msgid "input.invalid.brackets"
msgstr "Invalid character found. Angle brackets ('<>') are disallowed."

msgid "input.invalid.email"
msgstr "The provided value is not a valid email address"

msgid "input.invalid.html"
msgstr "HTML should be well-formed, and non-standard attributes, <script>, and <style> tags are not allowed."

msgid "input.invalid.prefix"
msgstr "The provided value is not valid. \"{0}\" prefix is required"

Expand Down