DEV Community

Samandar Ravshanov
Samandar Ravshanov

Posted on

πŸ“¦ Encode HTML character references and character entities

from functorflow import f

val = 'alpha Β© bravo β‰  charlie πŒ† delta'
r = f('encode-html', val)
print(r) # 'alpha © bravo ≠ charlie 𝌆 delta'
Enter fullscreen mode Exit fullscreen mode

Top comments (0)