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 Query
- 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 set variable in high chart data field
- How to get text from html table in pie chart (highchart)?
- Highcharts - how to set custom content in point tooltip (popup) on 3D scatter chart or how to customize point tooltip information?
- How to show open, close, high and low in tooltip when the chart type is 'line' in highstocks?
- How to set minutes as units in Highstock chart using data from CSV
- How to set color of each slice in pie chart in high charts library?
- How To Show Tooltip In Sparkline Chart From Code
- How to set individual colors for high chart pies
- How to set tooltip background as point color for split chart in Highcharts?
- How to display different tooltip formats in series of data in High Chart
- How to set Highcharts chart maximum yAxis value
- How to use the tooltip formatter and still display chart color (like it does by default)?
- how can I move yAxis labels from Right of chart to left of chart in highstock
- How can I use chart tooltip formatter in react-highcharts?
- How to create a new Highstock chart with new Highchart and not jquery?
- Highcharts: How to add HTML inside of chart area
- How do you add text to the bottom center of legend and bottom center of chart under legend?
- In high chart how to add event for label click
- How do I get remove of 'data table' option from High chart export
- Highcharts: how to set legend label name after chart created?
- how to set a rangeSelector for highstock
- Highcharts Bar Chart - How to set the minimum bar width/length
- How do I make each row in a HTML table a pie chart in Highcharts?
- How to modify Highcharts x-axis tooltip text
- how to center text inside donut chart embedded in combination chart
- How do I reduce the space between title and chart of a High Chart?
- How to set default range selected on chart draw in Highcharts/Highstock
- How to extract the data from highstock chart
More Query from same tag
- How to tie tooltips to the currently hovered SERIES, not just the point?
- Highcharts: how to add a custom action on custom added stock-tools button?
- Highcharts - How do I dynamically change Marker radius when zooming?
- Highcharts custom error handler
- Highcharts Remote Data - JSON Object Undefined
- Highcharts: X-axis labels inside columns
- zero value in highcharts/ highmap
- HighCharts: Increase width and padding of stacked bar graph
- Mix categories and subtasks in HighCharts Gantt?
- Passing data from JSP to jQuery and plotting in Highcharts
- How to disable HighCharts re-rendering while exporting charting into file?
- Highchart drill up function now working in reactjs
- Highchart - Export data as Excel file
- Is it possible to hide the line & symbol next to Highcharts legend items?
- Highcharts Drilldown Multiple Graphs
- Hightcharts: Set series label in last point
- change distance of x-axis labels from axis in highchart
- Highstocks add n number of series to chart in rails
- Determine which scatter points are within a filled area in highcharts
- Is it possible to create a multi level (stacked) donut chart with variable diameter on the last stack
- Highcharts, how to use gradient without setting a color?
- Highcharts: converting millimeters to pixel
- Categories overlaps when export the chart
- How to set Highcharts options in Angular 5
- HighCharts donut - how to individually adjust height of each external segment?
- Plot time on Y-axis and users on X-axis Highcharts
- Using Highchart with Codeigniter
- Highcharts: X and Y Axis cross at zero in scatter chart
- How can I contain a label on a Highcharts area chart to the series' area
- Legend in network graph ( Highchart Js)