I am using Maruku with my RoR3 app.
But the problem is that when i use the h(text)
method to escape the text from the database before i use Maruku it escapes >
to >
so Maruku wont see this as a blockquote.
But i still want to escape the rest of the text so my question is how can i make this work?
I don't want to disable the escaping but i don't want it to escape >
The following method takes html_encoded multiline strings and replaces all maruku blockquote elements that have been converted to html entity codes back to >
For the purpose of this implementation a maruku blockquote line is defined as a line beginning with one or more > sequences separated with optional whitespace.
The following test string was used
And using this as follows
maruku_text = maruku_escape(ERB::Util.html_escape(test_text))
Gave the following results