gh4a
gh4a copied to clipboard
Change method name 'encode' to 'encodeHtml'
This class is used to provide utilities for handling Html. The method named 'encode' is to encode an html page. Thus, the method name 'encodeHtml' is more intuitive than 'encode'.
That method doesn't encode (to) HTML, as the new name would imply, though. It encodes HTML source into a Spannable.
encodeToSpanned/encodeToSpannable would probably be a better name... The fact that the method belongs to the HtmlUtils class already implies that you're working with HTML.