Skip to content

Commit 32792d3

Browse files
committedMay 31, 2018
Better dox, spelling
1 parent f7a6864 commit 32792d3

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed
 

‎python/core/auto_generated/qgsstringutils.sip.in

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,11 @@ Converts a string by applying capitalization rules to the string.
191191

192192
static QString ampersandEncode( const QString &string );
193193
%Docstring
194-
Replaces any extended unicode characters with the XML style é encoded versions
195-
of these characeters.
194+
Makes a raw string safe for inclusion as a HTML/XML string literal.
195+
196+
This includes replacing '<' with '&lt;', '>' with '&gt;', '&' with '&amp', and
197+
any extended unicode characters with the XML style &#233; encoded versions
198+
of these characters.
196199

197200
.. versionadded:: 3.2
198201
%End

‎src/core/qgsstringutils.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,11 @@ class CORE_EXPORT QgsStringUtils
201201
static QString capitalize( const QString &string, Capitalization capitalization );
202202

203203
/**
204-
* Replaces any extended unicode characters with the XML style &#233; encoded versions
205-
* of these characeters.
204+
* Makes a raw string safe for inclusion as a HTML/XML string literal.
205+
*
206+
* This includes replacing '<' with '&lt;', '>' with '&gt;', '&' with '&amp', and
207+
* any extended unicode characters with the XML style &#233; encoded versions
208+
* of these characters.
206209
* \since QGIS 3.2
207210
*/
208211
static QString ampersandEncode( const QString &string );

0 commit comments

Comments
 (0)
Please sign in to comment.