It turns out that unicode standard defines a character that explicitly reverses the following text. You can insert it as ‮ in your html. Here is a sample:
Normal Text:
Send more money
Prepended By Mirror Character:
Send more money
Here is the specification of algorithm.






