diff --git a/website/config.rb b/website/config.rb index 5e0a66e8c..6ac63acf7 100644 --- a/website/config.rb +++ b/website/config.rb @@ -27,7 +27,11 @@ helpers do # # @return [String] def description_for(page) - return escape_html((page.data.description || "").gsub(/\n+/, ' ').squeeze(' ')) + description = (page.data.description || "") + .gsub('"', '') + .gsub("/\n+/", ' ') + .squeeze(' ') + return escape_html(description) end # This helps by setting the "active" class for sidebar nav elements