Some Elements On The Web Page I Am Testing Contain Leading (trailing) Whitespaces. I Am Using The Utilities.Trim Function To Remove Them, But Sometimes It Does Not Work. What Is Wrong

Some Elements On The Web Page I Am Testing Contain Leading (trailing) Whitespaces. I Am Using The Utilities.Trim Function To Remove Them, But Sometimes It Does Not Work. What Is Wrong


  • 8 Jan, 2012

    There are several types of whitespace characters that can be used in HTML pages: ?usual? spaces (with ASCII code 32), non-breaking spaces ( , code 160), end spaces ( , code 8194) and others. For more information on these characters, see the Whitespace and Formatting Characters article. The Utilities.Trim function only removes the ?usual? spaces from the string. To remove other whitespaces, you can use the Utilities.StringReplace function to replace them with empty strings. For example, the code snippet below demonstrates how to remove non-breaking spaces from a string

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.