Add example to unescape_html() documentation.

This commit is contained in:
tastytea 2020-01-16 18:06:14 +01:00
parent cf2ff119b4
commit 8cfba1f16b
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,12 @@ using std::string;
* *
* Supports named and numbered entities, decimal and hexadecimal. * Supports named and numbered entities, decimal and hexadecimal.
* *
* Example:
* @code
* // Will output: 2€ = 2€ = 2€
* std::cout << mastodonpp::unescape_html("2&euro; = 2&#8364; = 2&#x20ac;");
* @endcode
*
* @param html The HTML to unescape. * @param html The HTML to unescape.
* *
* @since 0.4.0 * @since 0.4.0