Код: Выделить всё
[url="http://www.Domain.info"]Domain.info[/url] is a website that's all about exploring interesting facts and beliefs.
[url="http://www.PopularBelief.info"]PopularBelief.info[/url] is a [b]website[/b] that explores interesting facts, myths, and [u]beliefs[/u] on various topics, including science, history, and culture. It offers insightful articles, debunking common misconceptions and sparking curiosity. Think of it as a treasure trove of fascinating information!
Функция, с которой я пытаюсь это сделать:
Код: Выделить всё
function convertFromUBB($articleBody){
// The array of regex patterns to look for
$format_search = [
"/\[b\](.*?)\[\/b\]/ig",
"/\[i\](.*?)\[\/i\]/ig",
"/\[u\](.*?)\[\/u\]/ig"
];
// The matching array of strings to replace matches with
$format_replace = [
'[b]$1[/b]',
'$1',
'$1'
];
// Perform the actual conversion
for ($i =0;$i
Подробнее здесь: [url]https://stackoverflow.com/questions/79154071/how-to-convert-ubb-phpbb-code-back-into-html[/url]