parallax/jsPDF

Reverse the text in the HTML element while using html method

Open

#3,094 opened on Feb 16, 2021

View on GitHub
 (7 comments) (0 reactions) (0 assignees)JavaScript (4,596 forks)batch import
Bugdifficulty:mediumhacktoberfest

Repository metrics

Stars
 (28,280 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Using the html method with HTML element RTL text will result in reversed text for example: אב -> בא This can be solved with function before cloning the element or option on the method.

At the moment i solved it with regex + string.replace method, but that can become an issue in large text.

Contributor guide