parallax/jsPDF

Reverse the text in the HTML element while using html method

Open

#3,094 opened on 2021年2月16日

GitHub で見る
 (7 comments) (0 reactions) (0 assignees)JavaScript (4,596 forks)batch import
Bugdifficulty:mediumhacktoberfest

Repository metrics

Stars
 (28,280 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド