mirror of
https://github.com/discourse/discourse.git
synced 2025-09-12 21:10:47 +08:00
FIX: OpenGraph tags not fully sanitized
This commit is contained in:
parent
664915fcd2
commit
2ab08ef21d
2 changed files with 9 additions and 3 deletions
|
@ -15,6 +15,11 @@ describe Summarize do
|
|||
Summarize.new("hello <b>robin</b>").summary.should == "hello robin"
|
||||
end
|
||||
|
||||
it "removes doctype entries" do
|
||||
# this is not valid html but this is just testing DOCTYPE entries
|
||||
Summarize.new("<!DOCTYPE html>Discourse").summary.should == "Discourse"
|
||||
end
|
||||
|
||||
it "strips leading and trailing space" do
|
||||
Summarize.new("\t \t hello \t ").summary.should == "hello"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue