bbcode convenience variables for producing documentation.

This commit is contained in:
friendica 2014-01-06 23:54:40 -08:00
parent 2f27d58dfe
commit e635dcb309

View File

@ -276,6 +276,8 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
}
}
$Text = str_replace(array('[baseurl]','[sitename]'),array(z_root(),get_config('system','sitename')),$Text);
// Replace any html brackets with HTML Entities to prevent executing HTML or script
// Don't use strip_tags here because it breaks [url] search by replacing & with amp