Insert spaces before stripping HTML when inserting search data

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-07-31 11:19:42 +02:00
parent 0d46e4fc3d
commit 8b6c7aa207
2 changed files with 13 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ defmodule Mobilizon.Service.Workers.BuildSearch do
[
event.id,
event.title,
HTML.strip_tags(event.description),
HTML.strip_tags_and_insert_spaces(event.description),
get_tags_string(event)
]
)