Shiny (R GUI) replaces < and > with < and > in tags$script

寵の児 提交于 2021-02-04 14:53:25

问题


Shiny (R GUI) replaces < and > with & lt; and & gt; in tags$script(), how to fix that? I need to use greater and less signs in my javascript.


回答1:


Whoops, sorry about that!

You can work around this problem for now by wrapping your script strings in HTML(), which will tell Shiny not to escape (this works in any context, not just inside script tags).



来源:https://stackoverflow.com/questions/19816551/shiny-r-gui-replaces-and-with-lt-and-gt-in-tagsscript

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!