Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » RichText,QTF,RTF... » String EncodeHtml (how to understand the vast majority of parameters of this function?)
Re: String EncodeHtml [message #58733 is a reply to message #58732] Tue, 09 August 2022 20:52 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1099
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello BetoValle,

I will do not tell you how to use this function, but I agree that it should be simple. Optimally any public API function/method should posses up to three parameters. Thanks to that it will be easy to use and users will do not complain about difficulties. I think in this case this function could be refator to HtmlEncoder class with parameters provided as separate method. So, it can look like this:
// Basic example:
auto results = HtmlEncoder(rtfContent).Encode();

// With parameters:
auto results = HtmlEncoder(rtfContent).Css({}).Encode();


Thanks for feedback, I know that there are some places in U++ framework when API is not user friendly and it should be reworked. I hope somebody will answer to your question how to use this over complicated function!

Klugier


U++ - one framework to rule them all.
 
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Previous Topic: Skipping footer/header and page numbering...
Next Topic: Paste Properly Scaled Images Into RichEdit
Goto Forum:
  


Current Time: Sun May 11 06:51:17 CEST 2025

Total time taken to generate the page: 0.00959 seconds