I am trying to output a hash which is the result of calling Flickr's collection.getTree method.
I have:
ap @flickr_collections
It IS printing out the hash but with all the escaped html tags around it. How can I get around this. I did try .html_safe
but it didn't work.
Basically all I want is a nice pretty printed output of this hash. Nothing more nothing less.
UPDATE:
This is what I am running: = ap(@flickr_collections, html: true)
and the output is:
<pre class="debug_dump">{ <pre>"collections"</pre><kbd style="color:slategray"> => </kbd><pre>{ <pre>"collection"</pre><kbd style="color:slategray"> => </kbd><pre>[ <kbd style="color:white">[0] </kbd><pre>{ <pre>"set"</pre><kbd style="color:slategray"> => </kbd><pre>[ <kbd style="color:white">[0] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157629511800621"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"On-Ride Photography"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[1] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157629391565747"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"First Day with Flash, Rocket & Piper"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre> ]</pre>, <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"57928212-72157629836236274"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Misc"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre>, <pre>"iconlarge"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"/images/collection_default_l.gif"</kbd></pre>, <pre>"iconsmall"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"/images/collection_default_s.gif"</kbd></pre> }</pre>, <kbd style="color:white">[1] </kbd><pre>{ <pre>"collection"</pre><kbd style="color:slategray"> => </kbd><pre>[ <kbd style="color:white">[0] </kbd><pre>{ <pre>"set"</pre><kbd style="color:slategray"> => </kbd><pre>[ <kbd style="color:white">[ 0] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157629683535562"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 1 - Hollywood Tour and Santa Monica Pier"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 1] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157629683541696"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 2 - Drive to Bay Area"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 2] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157629683554852"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 3 - Six Flags Discovery Kingdom"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 3] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157629710465912"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 4 - Gilroy Gardens & Santa Cruz Beach Boardwalk"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 4] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157629710474644"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 5 - California's Great America & Long Drive South"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 5] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157629710489442"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 6 - Six Flags Magic Mountain"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 6] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157629834618028"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 7 - Universal Studios Hollywood & Scandia Amusement Park & John's Incredible Pizza"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 7] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157629834637138"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 8 - Sea World San Diego & Belmont Park"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 8] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157629836419418"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 9 - Legoland California & Castle Amusement Park"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 9] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157629851123596"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 10 - Knott's Berry Farm & Adventure City"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[10] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157629851700916"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 11 & 12 - Disneyland Resort"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[11] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157629851713058"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 13,14 & 15 - Las Vegas"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre> ]</pre>, <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"57928212-72157629691182748"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"West Coast Tour 2009"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre>, <pre>"iconlarge"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"/images/collection_default_l.gif"</kbd></pre>, <pre>"iconsmall"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"/images/collection_default_s.gif"</kbd></pre> }</pre>, <kbd style="color:white">[1] </kbd><pre>{ <pre>"set"</pre><kbd style="color:slategray"> => </kbd><pre>[ <kbd style="color:white">[ 0] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157629866337538"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 0 - Arrival and Mall of America"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 1] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157629868655454"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 1 - Mall of America"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 2] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157629970737598"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 2 - Adventureland and Worlds of Fun"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 3] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157630011649024"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 3 - Worlds of Fun"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 4] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157630034790528"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 4 - Silver Dollar City"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 5] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157630035520246"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 5 - St Louis Arch and City Museum"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 6] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157630043090072"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 6 - Six Flags St Louis"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 7] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157630043098290"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 7 - Holiday World"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 8] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157630048416804"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 8 - Indiana Beach"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 9] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157630048431390"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 9 - Six Flags Great America"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[10] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157629997482351"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 10 - Mount Olympus, Timber Falls and Knuckleheads"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[11] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157630059600702"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 11 - Valleyfair"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre> ]</pre>, <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"57928212-72157629866347760"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Middle America Tour 2010"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre>, <pre>"iconlarge"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"/images/collection_default_l.gif"</kbd></pre>, <pre>"iconsmall"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"/images/collection_default_s.gif"</kbd></pre> }</pre>, <kbd style="color:white">[2] </kbd><pre>{ <pre>"set"</pre><kbd style="color:slategray"> => </kbd><pre>[ <kbd style="color:white">[0] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157631693409808"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 1 - Great Wall of China, Tiananmen Square, Forbidden City"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[1] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157630657898798"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 1 - Carowinds"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[2] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157630692436584"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 2 - Dollywood"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[3] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157630699845912"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 3 - Random Pigeon Forge Activities"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[4] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157630714758818"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 4 - Long Drive to Williamsburg"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[5] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157630717785454"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 5 - Busch Gardens Williamsburg"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[6] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157630717785576"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 6 - Kings Dominion"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre> ]</pre>, <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"57928212-72157630658165668"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"IntimidaTOUR 2010"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre>, <pre>"iconlarge"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"/images/collection_default_l.gif"</kbd></pre>, <pre>"iconsmall"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"/images/collection_default_s.gif"</kbd></pre> }</pre>, <kbd style="color:white">[3] </kbd><pre>{ <pre>"set"</pre><kbd style="color:slategray"> => </kbd><pre>[ <kbd style="color:white">[ 0] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157631693011733"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 0 - Early Arrival Day, Crab Island Childrens Amusement Park, Crab Island Amusement Park, Aoyun Fuwa Eden, Beijing World Park"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 1] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157631693409808"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 1 - Great Wall of China, Tiananmen Square, Forbidden City"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 2] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157631698474564"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 2 - Shijingshan Amusement Park, Sun Park"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 3] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157631703216195"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 3 - Happy Valley Beijing and visit to 2008 Olympic Park"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 4] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157631713251068"</kbd></pre>, <pre>"title"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"Day 4 - Victory Kingdom, Children's Palace, Langfang"</kbd></pre>, <pre>"description"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">""</kbd></pre> }</pre>, <kbd style="color:white">[ 5] </kbd><pre>{ <pre>"id"</pre><kbd style="color:slategray"> => </kbd><pre><kbd style="color:brown">"72157631761492087"</kbd></pre>, <pre>"title"</pre>
I can;t add the rest of the output as I can only use 30,000 characters in this box. The above is the first part of the output.
If I add a raw call infront of ap
, then it does help but it outputs each string, hash arrow and curly brace/square brace on a new line which is no use whatsoever.
I would appreciate this question being reopened.
Have you tried
strip_tags
?See doc: http://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-strip_tags