score:2
Accepted answer
This is happening because Rails 3 escapes all view strings by default, whereas rails 2 left them raw by default.
The trick here is to get that formatter line rendered raw:
<%= raw("options.tooltip.formatter = function() {return 'This is text and this is <b>bold</b>!'; }") %>
In the standard rails idiom:
<%= raw "options.tooltip.formatter = function() {return 'This is text and this is <b>bold</b>!'; }" %>
More good info on Rails HTML escape practices here:
Source: stackoverflow.com
Related Articles
- how to set html tags in text to highstock tooltip by lazy_high_chart gem
- High chart - Column Range Chart with Time range. How to get tooltip as Start and End time
- How to get text from html table in pie chart (highchart)?
- Cannot implement lazy high chart receiving errors
- Highchart / Highstock stack column chart show one series's tooltip at a time
- Unable to apply custom pipe to high chart tooltip values
- Highstock - Remove bottom date tooltip from line chart
- highcharts donut chart center text overlaps with tooltip
- How to show open, close, high and low in tooltip when the chart type is 'line' in highstocks?
- Highcharts display label for pie chart using html table as data source
- Remove day name from highstock chart tooltip
- finding the value in the series object and displaying in the tooltip of the high chart using angular 4
- Strange character in the Highstock source code
- Problems formatting tooltip date on HighStock chart
- Highcharts - Highstock chart showing double line on hovering data points to show tooltip
- HTML table as data source for highstock charts using highcharts
- High Charts Multiple Line Chart not displaying tooltip for multiple lines
- Pie Chart Center Text gets overlap with tooltip
- Highcharts bar chart tooltip HTML positioning
- Highstock - insert HTML link inside flag tooltip
- Angular 7 High Charts Stock Chart Datetime X Axis tooltip formatting independently of other tooltips
- Highstock chart tooltip activation only when inside the chart
- How To Show Tooltip In Sparkline Chart From Code
- Highcharts: Generate chart from tables having HTML tags in TD's
- Highstock chart export as PDF with image and text in title
- Highstock Chart with URL in flag text won't open in new window
- Highstock - flag text appears on top of the tooltip
- Highstock chart - Dates on same x axis and Crazy Tooltip
- Change only "Input Date" text of HIghStock Chart without setExtrerems?
- How to display different tooltip formats in series of data in High Chart
- How to highlight specific Point with Highcharts Js
- highcharts lang.resetZoom doesn't appear to work
- HighChart Pie Chart click on legend item to trigger drilldown
- How to return series/point data from mouseover event?
- a website that loads a lot of objects - remote proxy?
- How to elegantly plot charts in ASP.NET MVC 3 using Highcharts?
- MongoDB aggregation by time interval PHP
- Old draggable elements stay on high charts after turning on and off data point
- Highstock datetime xAxis, can only show all. no zoom
- highchart combine pie and spiderweb
- setCategories not printing the data in expected format in highchart
- Highcharts PIE chart series color doesn't change
- in React $(…).highcharts method "Uncaught TypeError: is not a function"
- Include image in highcharts export
- jquery highcharts multiline mvc asp.net
- Highcharts - Synchronized heat maps
- Align points with grouped bars
- Update HighCharts chart when AJAX Updates my data on my page
- HighStocks - x-axis Gridlines on each separate y-axis
- Removing lines between two values in Highchart's line chart