Parsers for NBBC and Markdown should use this function to format thier spoilers.
All spoilers in HTML-formatted posts are saved in this way. We use javascript in
spoilers.js to add markup and render Spoilers with the "Spoiler" css class name.
public static spoilerHtml ( string $spoilerText ) : string | ||
$spoilerText | string | The inner text of the spoiler. |
return | string |