You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for the nice plugin with good documentation.
In the Config.groovy for my app, I have the default codec set to html:
grails.views.default.codec = "html"
This causes all content inside ${ } to be HTML-escaped. It looks like there are a few spots in the plugin's templates that assume that this parameter is set to "none", as the plugin generates the following HTML:
<!-- The table listing the files available for upload/download -->
<table class="table table-striped">
<tbody class=&quot;files&quot; data-toggle="modal-gallery" data-target="#modal-gallery">
</tbody>
</table>
If I switch the codec to "none" then the HTML gets generated properly, but there are other places in my app that assume this is set to "html".
My proposed solution is to modify the plugin templates to use the <%= %> syntax instead of ${ } when HTML is being produced. So in _list.gsp the following line:
Thank you for the nice plugin with good documentation.
In the Config.groovy for my app, I have the default codec set to html:
This causes all content inside ${ } to be HTML-escaped. It looks like there are a few spots in the plugin's templates that assume that this parameter is set to "none", as the plugin generates the following HTML:
and
If I switch the codec to "none" then the HTML gets generated properly, but there are other places in my app that assume this is set to "html".
My proposed solution is to modify the plugin templates to use the <%= %> syntax instead of ${ } when HTML is being produced. So in _list.gsp the following line:
would be replaced with:
In _form.gsp, replace:
with:
and replace:
with:
The text was updated successfully, but these errors were encountered: