Is it possible to read a text file with PHP with styles?
My client doesn’t want to write any code (even [b][/b]) and he has to send those text files to some translators to translate them into 4 languages.
Then i have to post them on a site. They are very large texts and i was wondering how can i deal with this to keep the format without having to read and format all of them with BBcode or HTML code directly (as they are updated very often with some changes)
I see 2 possible answers :
Strip all tags, send texts to translator and re-add style formatting tags (see
strip_tags())Write a script that converts texts into an editable file format like .docx or .odt and reverse the process when texts comes back. (there are some PHP libraries that can do that)