When Asciidoctor is invoked via the CLI, the safe mode is set to UNSAFE by default.
You can change the security level by executing one of the following commands:
-S, --safe-mode=SAFE_MODESets the safe mode level of the document according to the assigned level (UNSAFE, SAFE, SERVER, SECURE).
--safe, asciidoctor-safeSets the safe mode level to SAFE.
Provided for compatibility with the python AsciiDoc safe command.
You can also set the safe mode from the API and enable or disable content based on the current safe mode.