You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
513 B

4 years ago
////
Included in:
- user-manual: Running Asciidoctor Securely: Set the safe mode in the API
////
The default safe level in the API is `SECURE`.
In the API, you can set the safe mode using a string, symbol or integer value.
The value must be set in the document constructor using the `:safe` option.
result = Asciidoctor.convert_file('master.adoc', :safe => 'server')
or
result = Asciidoctor.convert_file('master.adoc', :safe => :server)
or
result = Asciidoctor.convert_file('master.adoc', :safe => 10)