Help for this page

Select Code to Download


  1. or download this
    sub html_to_js_var {
        my($vars) = shift;
    ...
        return @html;
    
    }
    
  2. or download this
    my @js_code = html_to_js_var({
        "html"        => $html,
        "in_quotes"    => "single" # Could be "double"
    });