serbas133754457
serbas133754457

Is there a way to not autoescape variable values in modal? I cannot pass rich text to modal. Seems like values in modal behave differently, it cannot disable autoescape on variables. It does print raw if values are outside modal. If written in code it works. It is specifically from variable.

Tried: {% autoescape false %} and |raw, takes no effect. Any suggestions? https://octobercms.com/docs/markup/filter-raw

Last updated

serbas133754457
serbas133754457

Seems some of html code works. For example <strong> seems to be ignored.

mjauvin
mjauvin

Care to show an actuel example of what you use that's not working?

serbas133754457
serbas133754457

<div id="modal" class="modal modal-fixed-footer"> <div class="modal-content"> <div class="lt-row row"> <strong>Does not bold the text</strong> <b>Bolds the text</b> {% for record in records %} <div class="lt-col col s12"> {{ record.title|raw }} {{ record.description|raw }} </div> {% endfor %} </div> </div> <div class="modal-footer"> <a href="#!" class="modal-close waves-effect waves-green btn-flat">Agree</a> </div> </div>

Last updated

serbas133754457
serbas133754457

Ok, found the issue, theme overrides strong value in _typography.scss. Please close this Post.

Last updated

1-5 of 5