Support for right to left language in php

I am developing a site where people will post their comments in Arabic. my site is built on php. Does anyone know how to add legal language support for writing English text?

+4
source share
2 answers

Try specifying <html dir="rtl"> in your markup.

I would read: http://www.w3.org/International/tutorials/bidi-xhtml/

If for some reason you need to leave it on the left of a specific element, simply specify the dir attribute on it: <div dir="ltr"></div>

+11
source

I had a similar problem, even if I try to use rtl in textarea, from where I sent my Arabic data to the database, finally he decided when I also use rtl in the div, where I called the print data in this div. Therefore, use rtl on both sides, where the data is sent to the database, and secondly, when the data is retrieved for printing. A.

0
source

Source: https://habr.com/ru/post/1313285/


All Articles