mirror of
https://github.com/discourse/discourse.git
synced 2025-03-02 17:29:25 +00:00
To add an extra layer of security, we sanitize settings before shipping them to the client. We don't sanitize those that have the "html" type. The CookedPostProcessor already uses Loofah for sanitization, so I chose to also use it for this. I added it to our gemfile since we installed it as a transitive dependency.
3 lines
131 B
Handlebars
3 lines
131 B
Handlebars
{{text-field value=(html-safe value) classNames="input-setting-string"}}
|
|
<div class="desc">{{html-safe setting.description}}</div>
|