Drupal Answers Asked by bemarlan on December 22, 2021
I would like CKEditor to encode all special characters. Currently it only html escapes >, <, and & I believe.
I need the current html markup of this
Let's take a "ride!"
to become something like this
Let’s take a “ride!”
In this situation, the Let's take a "ride!"
is still what would display to the user, but the html should reflect the encoding so my styling is properly applied.
I am seeing that Drupal 7 had a config.js file that could be modified to accommodate this; however, Drupal 8 does not have this by default and does not seem to recognize it when one is created.
Does anyone know how I can make this happen?
EDIT: our content authors are using the Basic HTML editor permissions.
A clean solution would be to alter your twig template to include escape. There are plenty of examples in that guide.
Answered by Wim Mostrey on December 22, 2021
1 Asked on November 28, 2021
1 Asked on November 25, 2021 by srodrig
1 Asked on November 25, 2021
2 Asked on November 23, 2021 by sandesh-yadav
5 Asked on November 23, 2021 by arbee
1 Asked on November 19, 2021 by lee-woodman
1 Asked on November 19, 2021 by blueztechz
Get help from others!
Recent Answers
Recent Questions
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP