Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTS reads out html code in messages #66

Open
SpanishPear opened this issue Jan 9, 2021 · 1 comment
Open

TTS reads out html code in messages #66

SpanishPear opened this issue Jan 9, 2021 · 1 comment

Comments

@SpanishPear
Copy link
Collaborator

Ideally, html should be skipped and not read aloud

https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags might come in handy to use regex to check if tehre is html (this is a joke(

@cyphar
Copy link
Member

cyphar commented Jan 10, 2021

Yeah we just TTS message.text when we should maybe TTS the rendered innerText version? (I also just checked and innerText does appear to strip everything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants