Output formatters in Beautiful Soup
HTML entities are code that can be placed in an HTML file to represent special characters or symbols. These symbols are not generally present on the keyboard, and HTML entities are special code that render them when opened in a browser. For example, consider the following HTML:
<html> <body> <table> <tr> <th bgcolor="#ffffff">Symbols</th> <th bgcolor="#ffffff">Html Entity</th> <th bgcolor="#ffffff">Meaning</th> </tr> <tr> <th>&</th> <td align="center">&amp;</td> <td align="center">ampersand</td> </tr> <tr> <th>¢</th> <td align="center">&cent;</td> <td align="center">cent</td> </tr> <tr> <th>©</th> <td align="center">&copy;</td> <td align="center">copyright</td> </tr> <tr> <th>÷</th> ...
Get Getting Started with Beautiful Soup now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.