Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shiny (R GUI) replaces < and > with &lt; and &gt; in tags$script

Tags:

r

shiny

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.

like image 226
user1603038 Avatar asked Nov 06 '13 15:11

user1603038


1 Answers

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).

like image 163
Joe Cheng Avatar answered Sep 21 '22 09:09

Joe Cheng