sheadawson / silverstripe-shortcodable

Provides a GUI for CMS users to insert Shortcodes into the HTMLEditorField + an API for developers to define Shortcodable DataObjects and Views.
MIT License
48 stars 36 forks source link

Quotation marks in text fields #43

Closed jacobaarnold closed 6 years ago

jacobaarnold commented 8 years ago

I notice if I add a TextField or TextareaField to my FieldList, any double quotation marks entered break the short code in preview and published views. Is there any fix for this? Thanks!

micschk commented 6 years ago

Double quotes are part of the shortcode markup, so they're tricky/should not be used in attributes.

A workaround would be to use typographic quotation marks (“ & ”) instead of straight "s.