O'Reilly logo

Getting Started with Beautiful Soup by Vineeth G. Nair

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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>&amp;</th> <td align="center">&amp;amp;</td> <td align="center">ampersand</td> </tr> <tr> <th>&cent;</th> <td align="center">&amp;cent;</td> <td align="center">cent</td> </tr> <tr> <th>&copy;</th> <td align="center">&amp;copy;</td> <td align="center">copyright</td> </tr> <tr> <th>÷</th> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required