Function __global->convert_html_headers_to_titles
Definitions
sources/comcode_from_html.php
- Convert HTML headers to Comcode titles.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $semihtml | string | No | No | required parameter | N/A | N/A | Semi-HTML |
| $forceful | boolean | No | No | required parameter | N/A | N/A | Whether to force conversion on all header tags, even if they don't match Comcode-style/simple headers exactly |
Returns
- Semi-HTML, with headers converted to titles
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Convert HTML headers to Comcode titles.
*
* @param string $semihtml Semi-HTML
* @param boolean $forceful Whether to force conversion on all header tags, even if they don't match Comcode-style/simple headers exactly
* @return string Semi-HTML, with headers converted to titles
*/
function convert_html_headers_to_titles(string $semihtml, bool $forceful) : string
* Convert HTML headers to Comcode titles.
*
* @param string $semihtml Semi-HTML
* @param boolean $forceful Whether to force conversion on all header tags, even if they don't match Comcode-style/simple headers exactly
* @return string Semi-HTML, with headers converted to titles
*/
function convert_html_headers_to_titles(string $semihtml, bool $forceful) : string

