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!