Merge pull request #954 from davotoula/additional-html-entities-for-url-preview

Additional html entities for url preview
This commit is contained in:
Vitor Pamplona
2024-06-29 07:59:14 -04:00
committed by GitHub

View File

@@ -143,6 +143,7 @@ object MetaTagsParser {
"GT" to ">", "GT" to ">",
"nbsp" to " ", "nbsp" to " ",
"NBSP" to " ", "NBSP" to " ",
"middot" to "·",
) )
val CHAR_REFS = val CHAR_REFS =
mapOf( mapOf(
@@ -153,6 +154,8 @@ object MetaTagsParser {
"039" to "'", "039" to "'",
"8217" to "", "8217" to "",
"8216" to "", "8216" to "",
"8220" to "",
"8230" to "",
"39" to "'", "39" to "'",
"ldquo" to "", "ldquo" to "",
"rdquo" to "", "rdquo" to "",
@@ -160,6 +163,7 @@ object MetaTagsParser {
"hellip" to "", "hellip" to "",
"x27" to "'", "x27" to "'",
"nbsp" to " ", "nbsp" to " ",
"x2d" to "-",
) )
fun replaceCharRefs(match: MatchResult): String { fun replaceCharRefs(match: MatchResult): String {