Renders an syntax-highlighted html-version (and angular parsable) of JSON-dump of a given variable.
Syntax
dumpHex(?string $string, ?bool $showChars = false, ?int $bytesPerRow = 16): string
Parameter
@param string|null $string (Binary Data-) String to print.
@param bool|null $showChars (optional, default FALSE) If TRUE the printable chars are printed, too. Non printable-characters are displayed as a ".".
@param int|null $bytesPerRow (optional, default NULL => 16) How many bytes printed in one line.
Return
Returns a html-string containing the dump.
Example
Simple example to print out a string.
{% set MyVar = 'Hello Hublify World!' %} {{ hublify.dumpHex(MyVar, true) }}