This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
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
<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
Ok, found the issue, theme overrides strong value in _typography.scss. Please close this Post.
Last updated
1-5 of 5