HTML escape Faker::Hipster.paragraph

This commit is contained in:
Henne Vogelsang 2016-05-02 15:56:40 +02:00
parent 40562334c7
commit 8fa92b72d1
3 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@
FactoryGirl.define do
factory :lodging do
name { "#{Faker::App.name} Hotel" }
description { Faker::Lorem.paragraph }
description { CGI.escapeHTML(Faker::Lorem.paragraph) }
website_link { Faker::Internet.url }
end
end