Greater than symbol in control attributes

Last post 01-06-2011, 8:52 AM by Eric. 2 replies.
Sort Posts: Previous Next
  •  01-06-2011, 5:22 AM 65610

    Greater than symbol in control attributes

    I am attempting to attach logical statements to HTML controls as attributes, to be sent to a parser later (which determines if the controls are enabled for example).
     
    Cute Editor seems to be objecting to all forms of the greater than symbol; encoded or not:
    >
    The same with ASCII #62, and the symbol itself; >.
     
    To reproduce the problem, in Page_Load set the editor text as follows:
    Editor1.Text = "<input id=\"text1\" value=\"text1\" name=\"text1\" enabledlogic='\"Param1\" > \"Param2\"' type=\"text\" />";
     
    Run it and switch to the HTML tab. What should be:
    <input id="text1" value="text1" name="text1" enabledlogic='"Param1" > "Param2"' type="text" />
    is actually:
    <input id="text1" value="text1" name="text1" enabledlogic='"Param1"   type="text" /> "Param2"'>
     
    The less than symbol does not have the same problem and works fine. Is there a fix or setting to fix this somewhere?
  •  01-06-2011, 5:25 AM 65611 in reply to 65610

    Re: Greater than symbol in control attributes

    A note on that Page_Load method: all three forms (&gt; &hash62; >) produce the same problem.
  •  01-06-2011, 8:52 AM 65615 in reply to 65610

    Re: Greater than symbol in control attributes

    Dear Tobster,
     
    Editor1.Text = "<input id=\"text1\" value=\"text1\" name=\"text1\" enabledlogic='\"Param1\" > \"Param2\"' type=\"text\" />";
    This highlighted code is incorrect, it doesn't conform w3c standards, you can refer to http://w3schools.com/TAGS/tag_input.asp 
     
    Run it and switch to the HTML tab. What should be:
    <input id="text1" value="text1" name="text1" enabledlogic='"Param1" > "Param2"' type="text" />
    is actually:
    <input id="text1" value="text1" name="text1" enabledlogic='"Param1"   type="text" /> "Param2"'>
     
    This highlighted code is also incorrect.
     
    Thank you for asking
     
     
View as RSS news feed in XML