From b72da7372d452b3373985b49cd4a7df7fd4f7987 Mon Sep 17 00:00:00 2001 From: Claire Wang <22240514+claireyywang@users.noreply.github.com> Date: Thu, 4 Feb 2021 09:25:33 -0800 Subject: [PATCH] Wrap description tags in CDATA (#483) * wrap description in CDATA Signed-off-by: claireyywang <22240514+claireyywang@users.noreply.github.com> * fix codecheck Signed-off-by: claireyywang <22240514+claireyywang@users.noreply.github.com> --- src/Element.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Element.cc b/src/Element.cc index b0f924123..d50671b7c 100644 --- a/src/Element.cc +++ b/src/Element.cc @@ -255,8 +255,9 @@ void Element::PrintDescription(const std::string &_prefix) const std::cout << ">\n"; - std::cout << _prefix << " " << this->dataPtr->description - << "\n"; + std::cout << _prefix << " dataPtr->description + << "]]>\n"; Param_V::iterator aiter; for (aiter = this->dataPtr->attributes.begin(); @@ -266,8 +267,9 @@ void Element::PrintDescription(const std::string &_prefix) const << (*aiter)->GetKey() << "' type ='" << (*aiter)->GetTypeName() << "' default ='" << (*aiter)->GetDefaultAsString() << "' required ='" << (*aiter)->GetRequired() << "'>\n"; - std::cout << _prefix << " " << (*aiter)->GetDescription() - << "\n"; + std::cout << _prefix << " GetDescription() + << "]]>\n"; std::cout << _prefix << " \n"; }