Use in this case
a { unicode-bidi: embed; }
In general, set unicode-bidi: embed to any element that may contain text with a directivity opposite to that of the surrounding text. Although, for example, simply embedding Arabic words in English text (or vice versa) usually does not require this (since the situation is handled by the inherent directivity of the letters), this is a useful precaution when numbers, punctuation or other directional neutral characters may be involved.
Sample HTML <bdo> , for example. <bdo><a ...>...</a></bdo> , but it is not implemented as such, so you will need to create a backup using a { unicode-bidi: embed; } a { unicode-bidi: embed; } in CSS and, to cover older versions of IE, document.createElement('bdo') in the JavaScript code.
The dir=ltr attribute in a may have the same effect, but this is a bug in browsers. According to the HTML 4.01 specification, this should only affect the direction of the neutral text (Hebrew text is not necessarily), and dir=ltr is the initial value.
source share