Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
locallib.php File Reference

Functions

 toolbook_importhtml_fix_encoding ($html)
 Convert some html content to utf8, getting original encoding from html headers.
 
 toolbook_importhtml_fix_path ($path)
 Normalize paths to be absolute.
 
 toolbook_importhtml_get_chapter_files ($package, $type)
 Returns all the html files (chapters) from a file package.
 
 toolbook_importhtml_import_chapters ($package, $type, $book, $context, $verbose=true)
 Import HTML pages packaged into one zip archive.
 
 toolbook_importhtml_parse_body ($html)
 Extract the body from any html contents.
 
 toolbook_importhtml_parse_headings ($html)
 Parse the headings of the imported package of type 'typeonefile' (currently unsupported)
 
 toolbook_importhtml_parse_styles ($html)
 Parse the links to external css sheets of the imported html content.
 
 toolbook_importhtml_parse_title ($html, $default)
 Extract the title of any html content, getting it from the title tag.