Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
StringTools[Escape] - escape special characters in a string by using a specified escape schema
Calling Sequence
Escape( s, form )
Parameters
s
-
string; Maple string
form
(optional) symbol or string; keyword describing how to escape characters in the input s
Description
The Escape(s, form) command escapes special characters in the input string s, according to rules specified by the optional second argument form.
The form argument defaults to xml, which specifies that rules appropriate for including the text of the string s in an XML document are to be used.
Alternatively, the form argument can be the symbol html. Escaping rules suitable for HTML text are then used.
If the form argument is regexp, then the input is taken to be a regular expression, and is escaped in such a way that RegMatch( Escape( rx, 'regexp' ), rx ) returns true, for any regular expression rx.
Examples
See Also
StringTools, StringTools[RegMatch]
Download Help Document