Closed Bug 575724 Opened 15 years ago Closed 15 years ago

[k][questions] Feeds contain markup instead of HTML

Categories

(support.mozilla.org :: Questions, task, P2)

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stephend, Assigned: jsocol)

References

()

Details

Attachments

(1 file)

For feeds of forum posts with Wiki markup, such as: # one # two etc., which are turned into: 1. one 2. two we show the # chars in the feed. We need a design decision here as to which to display (raw vs. pretty-print)
Target Milestone: --- → 2.2
Summary: [k][questions][ddn] → [k][questions][ddn] Feeds contain markup instead of HTML
Whiteboard: [ddn]
Is the description pure text? If so, pick the first one of these that seems implementable in reasonable time: 1. Translate (the most common) wiki markup into its closest plaintext equivalent. In the case above, replace each "#" with "1.", "2.", etc. (w/o a line break). 2. Strip the wiki markup. The description presumably removes lines and paras, so the description should be readable w/o the associated markup. 3. Leave it as is. Someone following the RSS feed probably has a solid enough understanding to recognize and interpret the raw markup.
(2) is the first one that's implementable in a reasonable amount of time: use content_parsed and strip_tags. (1) is a rabbit hole that ends with building a new, worse wiki parser.
Possibly dumb question: couldn't the actual mediawiki->html parser be used to generate the html, rather than choosing between plain text or raw markup?
Yes, that's really the choice (except for titles) I think we got a little side tracked. How about: HTML for item content, stripped plain text for item title?
Sounds like the best solution!
Assignee: nobody → erik
Component: Forum → Questions
Severity: minor → normal
Priority: -- → P2
Summary: [k][questions][ddn] Feeds contain markup instead of HTML → [k][questions] Feeds contain markup instead of HTML
Whiteboard: [ddn]
Assignee: erik → james
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Note that this applies to both the feed of questions and the per-question feed of answers, so good URLs to test: https://support-stage.mozilla.com/en-US/questions/8/feed https://support-stage.mozilla.com/en-US/questions/feed
Verified FIXED; there's a spinoff, bug 582743.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: