I made typical form with ZF2 form and wanted to add validation using ZF2 InputFilter. It was success but the colour of error message is black which is looks strange. I tried to change the colour by using method I've searched like this:
array( 'name' =>'NotEmpty', 'options' => array( 'messages' => array( NotEmpty::IS_EMPTY => '<div style="color:red;">Please enter User Name!</div>' ), ), ),
But, instead of message's colour changed to red, it showed the tag with style, in other word, just plain HTML. What is the proper way to achieve my need?