Use hidden

main
Bob Mottram 2022-11-11 11:40:43 +00:00
parent 99cf867ae1
commit 9a03272ad1
2 changed files with 3 additions and 2 deletions

View File

@ -685,7 +685,8 @@ def _add_hash_tags(word_str: str, http_prefix: str, domain: str,
}
replace_hashtags[word_str] = "<a href=\"" + hashtag_url + \
"\" class=\"mention hashtag\" rel=\"tag\" tabindex=\"10\">" + \
"<span aria-label="">#</span><span>" + hashtag + "</span></a>"
"<span aria-hidden=\"true\">#</span><span>" + \
hashtag + "</span></a>"
return True

View File

@ -3950,4 +3950,4 @@ def dont_speak_hashtags(content: str) -> str:
if not content:
return content
return content.replace('>#<span',
'><span aria-label="">#</span><span')
'><span aria-hidden="true">#</span><span')