gh4a icon indicating copy to clipboard operation
gh4a copied to clipboard

Change method name 'encode' to 'encodeHtml'

Open pdhung3012 opened this issue 6 years ago • 2 comments

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'.

pdhung3012 avatar Aug 13 '19 01:08 pdhung3012

That method doesn't encode (to) HTML, as the new name would imply, though. It encodes HTML source into a Spannable.

maniac103 avatar Aug 13 '19 05:08 maniac103

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.

Fs00 avatar Dec 04 '21 13:12 Fs00