X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=docs%2Fcontent%2Fshared-javascript-and-cpp-documentation%2Fmarkup-style.md;h=5697959a124355f034b5df2f8e9165a3102f880f;hb=fe706c2b9e0a2ce31c91317dd6749faecef6d92e;hp=18932734e92cd2a64fb51cce592666e7c8de8b7e;hpb=2c2f52b1e6f532312359afbf5910a44943bbb87b;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/docs/content/shared-javascript-and-cpp-documentation/markup-style.md b/docs/content/shared-javascript-and-cpp-documentation/markup-style.md old mode 100644 new mode 100755 index 1893273..5697959 --- a/docs/content/shared-javascript-and-cpp-documentation/markup-style.md +++ b/docs/content/shared-javascript-and-cpp-documentation/markup-style.md @@ -126,4 +126,56 @@ field.SetProperty( TextLabel::Property::TEXT, " : Greater Than. It means end of tag. +- & : Ampersand. It means beginning of XHTML Entity. + +> "&" usage in markup style changed from Tizen 4.0. +"To display special character needs as regular, prepend it with two backslashes in the string." + +Below are some examples + +~~~{.cpp} +// C++ ( Wrong usage to print text "Testing of < special character" ) +field.SetProperty( TextLabel::Property::TEXT, "Testing of < special character" ); +~~~ + +![ ](SpecialCharacter1.png) + +~~~{.cpp} +// C++ ( Wrong usage to print text "Testing of & special character" ) +field.SetProperty( TextLabel::Property::TEXT, "Testing of & special character" ); +~~~ + +![ ](SpecialCharacter1.png) + +~~~{.cpp} +// C++ ( Correct usage to print text "Testing of & < > special characters" ) +field.SetProperty( TextLabel::Property::TEXT, "Testing of \\& \\< \\> special characters" ); +~~~ + +![ ](SpecialCharacters.png) + */