topcoder-greed
topcoder-greed copied to clipboard
Is it possible to get a raw string of the problem description?
I want to use a value of ${Problem.Constraints} in my template. However, this value contains HTML tags. Can I remove these tags or get a raw string of these properties?
That depends how you define the term "raw string", because I'm not sure that just removing the XML tags is enough to form a so-called raw string. Also, could you share your intented usage of the value to give some insights, an example would be better, thanks.
For example, ${Problem.Constraint ; string(striptags)}
or something similar, I guess.
hi shivawu, what you said is just what I wanted! I would like to remove XML tags. I wanted to write in my source code like this. // n will have between 1 and 50, inclusive. // m will have between 1 and 50, inclusive. int sum(int n, int m){ return n+m; } Is this easy?