Skip to content

v1.0.0 (Legacy Support)

Choose a tag to compare

@estefanionsantos estefanionsantos released this 10 Jul 19:00

Added

  • Initial stable release of the Rubricate String component.
  • Introduced AbstractEncoderStr to isolate low-level character encoding logic.

Refactored

  • Modernized legacy code structure for clean PHP 5.4+ compatibility (short array syntax [], strict visibility modifiers).
  • Moved utf8UriEncode to AbstractEncoderStr and changed its visibility to protected for better encapsulation.
  • Standardized all method arguments to consistently use $string.

Changed (API Clean up)

Renamed several methods to improve semantics, consistency, and eliminate redundancy:

  • clean -> strip (explicitly states it strips HTML tags).
  • autoLinkUrl -> linkUrl
  • autoLinkEmail -> linkEmail
  • autoLink -> link
  • encodeHtmlTag -> encodeEntities (focused on HTML entities conversion).
  • stripIndentation -> flattenSpace (accurately describes flattening block text).