ebailey78 / shinyBS

Twitter Bootstrap Components for Shiny
182 stars 47 forks source link

bsPopover not escaping single quotes #110

Open nsolomon-nycc opened 5 years ago

nsolomon-nycc commented 5 years ago

Running bsPopover("test_id", "test_title", "doesn't work") results in

<script>$(document).ready(function() {setTimeout(function() {shinyBS.addTooltip('test_id', 'popover', {'content': 'doesn't work', 'placement': 'bottom', 'trigger': 'hover', 'title': 'test_title'})}, 500)});</script>

The problem is the apostrophe in "doesn't", I think.

Thanks!

cbarbu commented 4 years ago

Same problem here. Workaround : we use the corresponding html code : ’