diff --git a/sources/application/UI/Base/Component/Html/HtmlFactory.php b/sources/application/UI/Base/Component/Html/HtmlFactory.php index 869480cfb..bdbb0f47f 100644 --- a/sources/application/UI/Base/Component/Html/HtmlFactory.php +++ b/sources/application/UI/Base/Component/Html/HtmlFactory.php @@ -50,4 +50,16 @@ class HtmlFactory { return new Html('

'.$sContent.'

'); } + + /** + * Create a container for contents having multiple HTML tags, for which we want to preserve style and don't apply minireset + * + * @param string $sContent + * + * @return \Combodo\iTop\Application\UI\Base\Component\Html\Html + */ + public static function MakeHtmlContent(string $sContent): Html + { + return new Html('
'.$sContent.'
'); + } } \ No newline at end of file diff --git a/templates/base/components/html/layout.html.twig b/templates/base/components/html/layout.html.twig index a5b8f3a48..ef12b8056 100644 --- a/templates/base/components/html/layout.html.twig +++ b/templates/base/components/html/layout.html.twig @@ -1 +1 @@ -
{{ oUIBlock.GetHtml()|raw }}
\ No newline at end of file +{{ oUIBlock.GetHtml()|raw }} \ No newline at end of file