CultivateLabs/storytime

Excerpt strip_tags

Closed this issue · 3 comments

Sometimes when I create a new post I see that, in the excerpt things like quotes (") are changed to ". After some investigation I saw that this was due to strip_tags being called on the excerpt.

Is this the expected behaviour?

Thank you!

Not sure I entirely follow -- those both look the same to me? Or am I missing something there?

Strip tags is just trying to sanitize our content some since we sometimes get garbage in the post content (e.g. someone pastes something from word).

Sorry, github corrected the quote... I meant to say that thing like quotes are changed to "

After some search i found that it is related to this bug in rails: rails/rails-html-sanitizer#31

Seems like it was already fixed: rails/rails-html-sanitizer#35
Will make it to rails 4.2.2

i use rails 4.2.5.1 and there is still this bug