1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Update commment

This commit is contained in:
Aidan Woods 2018-03-15 19:55:33 +00:00
parent 3fc54bc966
commit 624a08b7eb
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -28,9 +28,10 @@ class TrustDelegatedExtension extends Parsedown
// WARNING: There is almost always a better way of doing things!
//
// This example is one of them, unsafe behaviour is NOT needed here.
// Only use this if you trust the input and have no idea what
// the output HTML will look like (e.g. using an external parser).
// This behaviour is NOT needed in the demonstrated case.
// Only use this if you are sure that the result being added into
// rawHtml is safe.
// (e.g. using an external parser with escaping capabilities).
$Block['element']['text']['rawHtml'] = "<p>$text</p>";
$Block['element']['text']['allowRawHtmlInSafeMode'] = true;