Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadHtml ¶
ReadHtml converts an HTML file located at the specified path to plain text.
It reads the HTML file, processes it to extract only the text content (excluding HTML formatting), and returns the plain text representation.
Parameters:
- path: A string containing the file path to the HTML document to be converted.
Returns:
- string: The plain text content extracted from the HTML document.
- error: An error if the file cannot be opened or if the HTML conversion fails.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.