Prevent HTML tags at page meta content for calendar events

Description

Quick-Fix: The page meta content tag is filled with the event description at the detail-view of the event. Since the description field of calendar events is HTML-formatted, it is necessary to omit HTML tags for the meta content.

Activity

Show:

Paul PiaoMay 7, 2012 at 1:31 AM

PASSED Manual Testing using the following steps:

1. Add Calendar portlet.
2. Add a Event Description is:

3. Click Event.
4. Go to source.
5. Search "description name or tag name".

Reproduced on:
Tomcat 7.0 + MySQL 5. Portal 6.1.0 CE GA1.

I can see the "<meta name="description" content="&lt;table border=&#034;1&#034; cellpadding=&#034;1&#034; cellspacing=&#034;1&#034; style=&#034;width: 500px; &#034;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt; hello&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt; &amp;nbsp;&lt;/p&gt;" lang="en-US" /> <meta name="keywords" content="paul" lang="en-US" />".

Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 55b6c71fde77a8d3a42e6da8f7b38dfc77686d33.
Tomcat 7.0 + MySQL 5. Portal 6.1.x CE GIT ID: f66f9850068000faffad7b98ba993adf647ccd66.
Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: b8baaee26d622ffb65065f96168983d301b9e350.

I can see the "<meta content="hello " lang="en-US" name="description" /> <meta content="paul" lang="en-US" name="keywords" />". It is working.

Fixed

Details

Assignee

Reporter

Labels

Branch Version/s

6.1.x

Backported to Branch

Committed

Epic/Theme

Git Pull Request

Components

Priority

Zendesk Support

Created May 3, 2012 at 7:21 AM
Updated June 24, 2023 at 4:01 PM
Resolved May 3, 2012 at 9:51 AM
Loading...