Commit 55493dd2 authored by Ujvari Gergely's avatar Ujvari Gergely

Fix #489 - singlequote character was not escaped when angularjs read the...

Fix #489 - singlequote character was not escaped when angularjs read the quote, text from the generated pt template
parent ec24b00e
......@@ -44,8 +44,14 @@ elide = (text, split_length) ->
text = text + '\u2026'
text
descapeSingleQuote = (text) ->
if text
text = text.replace /'/g, "'"
text
angular.module('h.filters', [])
.filter('converter', -> (new Converter()).makeHtml)
.filter('fuzzyTime', -> fuzzyTime)
.filter('userName', -> userName)
.filter('elide', -> elide)
.filter('descSingleQuote', -> descapeSingleQuote)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment