import Pleroma.Factory
setup do
- user = insert(:user)
+ user = insert(:user, bio: "<span>Here's some html</span>")
[user: user]
end
"id" => user.id,
"name" => user.name,
"screen_name" => user.nickname,
- "description" => user.bio,
+ "description" => HtmlSanitizeEx.strip_tags(user.bio),
"created_at" => created_at,
# Fake fields
"favourites_count" => 0,
"id" => user.id,
"name" => user.name,
"screen_name" => user.nickname,
- "description" => user.bio,
+ "description" => HtmlSanitizeEx.strip_tags(user.bio),
"created_at" => created_at,
# Fake fields
"favourites_count" => 0,