fix borkage caused by query string sanitization sometimes returning `nil`

staging
multiple creatures 2019-08-01 14:08:29 -05:00
parent c4bf59ed9c
commit 720207cf4b
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ class Sanitize
# href matches link text with sanitized query string?
text = Sanitize::sanitize_query_string(node.text.strip)
return if text.blank?
if href == text
node.inner_html = "\u2728 #{node.inner_html}"
return