zen0wu / topcoder-greed

greedy editor for topcoder arena
Apache License 2.0
229 stars 45 forks source link

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

Open camypaper opened 10 years ago

camypaper commented 10 years ago

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?

zen0wu commented 10 years ago

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.

wookayin commented 10 years ago

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

camypaper commented 10 years ago

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?