modify Utils.scrub_html_and_truncate to take omission parameter

This commit is contained in:
faried nawaz 2023-03-06 02:30:52 +05:00
commit 86ee4b72f3
2 changed files with 4 additions and 3 deletions

View file

@ -72,7 +72,7 @@ defmodule Pleroma.Web.Metadata.UtilsTest do
end
end
describe "scrub_html_and_truncate/2" do
describe "scrub_html_and_truncate/3" do
test "it returns text without encode HTML" do
assert Utils.scrub_html_and_truncate("Pleroma's really cool!") == "Pleroma's really cool!"
end