topcoder-greed icon indicating copy to clipboard operation
topcoder-greed copied to clipboard

Is it possible to get a raw string of the problem description?

Open camypaper opened this issue 10 years ago • 3 comments

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?

camypaper avatar Sep 02 '14 09:09 camypaper

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.

zen0wu avatar Sep 04 '14 13:09 zen0wu

For example, ${Problem.Constraint ; string(striptags)} or something similar, I guess.

wookayin avatar Sep 04 '14 13:09 wookayin

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?

camypaper avatar Sep 05 '14 08:09 camypaper