Любой простой способ преобразовать bb-кодированную строку (абзац с некоторыми тегами bbcode внутри, только B, U, S, IMG, URL-теги bbcode) в допустимый формат PHPWord, используя addTextRun или аналогичный?
Я не могу использовать функцию "addHTML".Я уже пробовал.
Пример абзаца:
The name, [b]Buenos Aires[/b], means fair winds, or [u]literally good airs in [b]Spanish[/b][/u]. It is one of the largest cities in Latin America, with a lot of cultural offer, and it is the beginning point for most Argentinean Experiences.
[img]https://www.bbvaresearch.com/wp-content/uploads/2017/10/situacion-argentina.jpg[/img]
Inhabitants of Buenos Aires are called porteños, "people from the port", implying that many of the inhabitants are immigrants in some ways or another. Buenos Aires is a singular, open, and integrating destination that allows the visitor not only to view the city but also to have an exceptional urban adventure.
Это должно выглядеть так
https://gyazo.com/0ad3259af801d88cabc6448c2686f93f