## SecurityElement::Escape method


对 XML 字符串中的字符进行转义。

```cpp
static String System::Security::SecurityElement::Escape(const String &str)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| str | const String\& | 要转义的 [String](../../../system/string/)。 |

### ReturnValue

已转义的字符串。

## 另见

* Class [String](../../../system/string/)
* Class [SecurityElement](../)
* Namespace [System::Security](../../)
* Library [Aspose.Page for C++](../../../)
