While scrapping OP.GG, some text includes apostrophes (').
In my example, I get Vel'Koz instead of Vel'Koz no matter which method I use - innerHTML (shouldn't work, so it's okay), rawText (same), innerText (this definitely should work!).
Quick peek as image what is going on:
Meanwhile in browser, it works as expected, or even better (as both innerHTML and innerText work):
In my case, workaround is really easy: I just replace ' with '.
While scrapping OP.GG, some text includes apostrophes (
'
).In my example, I get
Vel'Koz
instead ofVel'Koz
no matter which method I use -innerHTML
(shouldn't work, so it's okay),rawText
(same),innerText
(this definitely should work!).Quick peek as image what is going on:
Meanwhile in browser, it works as expected, or even better (as both
innerHTML
andinnerText
work):In my case, workaround is really easy: I just replace
'
with'
.