Skip to content
Snippets Groups Projects
Commit c3fbfada authored by Marcelo Schmidt's avatar Marcelo Schmidt
Browse files

Allow multi-line title on oembed

parent 6bc0a374
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ OEmbed.getUrlMeta = (url, withFragment) ->
if content?.body?
metas = {}
content.body.replace /<title>(.+)<\/title>/gmi, (meta, title) ->
content.body.replace /<title>((.|\n)+)<\/title>/gmi, (meta, title) ->
metas.pageTitle = title
content.body.replace /<meta[^>]*(?:name|property)=[']([^']*)['][^>]*content=[']([^']*)['][^>]*>/gmi, (meta, name, value) ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment