#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; uCalc::Transformer t; // Rule 1: Remove script tags and their content (case-insensitive, multi-line) t.FromTo("", ""); t.DefaultRuleSet().SetCaseSensitive(false).SetStatementSensitive(false); // Rule 2: Normalize one or more whitespace characters to a single space t.FromTo("{@Whitespace:ws}", " "); // Transform the input in one go and print the result t.Text(" Welcome! Please enjoy. "); cout << "Sanitized: '" << t.Transform() << "'" << endl; }