Opened 3 years ago

Closed 3 years ago

#14 closed defect (fixed)

Show post titles as HTML

Reported by: mrroundhill Owned by: tmar
Priority: minor Milestone:
Component: All platforms Version: .5
Keywords: Cc:

Description

Not sure if I built the app correctly as it didn't show up in a device emulator, but it looks like the '&' character is not decoding properly. See the attached screenshot.

Hello from the WordPress? for Android team :D

Attachments (1)

ishot-70.jpg (89.3 KB) - added by mrroundhill 3 years ago.
html character

Download all attachments as: .zip

Change History (13)

Changed 3 years ago by mrroundhill

html character

comment:1 Changed 3 years ago by petertennekes

  • Owner set to petertennekes
  • Status changed from new to assigned

comment:2 Changed 3 years ago by petertennekes

  • Version set to .5

comment:3 Changed 3 years ago by petertennekes

  • Owner changed from petertennekes to jokalli2

Thanks for the report I have been able to reproduce it on the Nokia E75. Lets see what can be done about it.

comment:4 Changed 3 years ago by jokalli2

  • Resolution set to fixed
  • Status changed from assigned to closed

Thanks for the report and good job with the Android app! This is now fixed in SVN revision 15 (trunk) and 16 (0.5 branch).

If you find any other places where there might be special characters and they are not handled properly, do not hesitate to open new tickets about them.

comment:5 Changed 3 years ago by jokalli2

  • Resolution fixed deleted
  • Status changed from closed to reopened

Reopening, as the issue is still not fixed on wordpress.com blogs. In our custom test blog the characters will work. I will investigate this during the next week.

comment:6 Changed 3 years ago by petertennekes

  • Milestone set to .6

comment:7 Changed 3 years ago by ahvenlam

I tried this in wordpress.com hosted blog via dashboard and it seems that does not work in dashboard either. Dashboard also shows & as post title.

Our custom test blog has older version of wordpress than wordpress.com hosted blogs. Maybe this is something that has changed in wordpress code.

comment:8 Changed 3 years ago by sber

  • Resolution set to worksforme
  • Status changed from reopened to closed

Seems to be fixed in 0.6.99

comment:9 Changed 3 years ago by sber

  • Resolution worksforme deleted
  • Status changed from closed to reopened

Oops, tested this with the wrong blog by accident. The status is still the same, i.e. doesn't work on wordpress.com blogs.

comment:10 Changed 3 years ago by tmar

The post title and description sent by WordPress? are HTML, but we are currently rendering them as plaintext.

WordPress? 2.8 will let the unescaped "&" (invalid HTML) in the title/description slip by as-is in the XML-RPC API and only fix it up when displaying the post, whereas WordPress? 3.0 will automatically apply some kind of heuristic to fix up unescaped "&" to "&" at the XML-RPC level, like it should be.

We are then displaying this raw HTML code as plaintext, which is rather wrong.

Using <html-like tags> in the title also fails badly.

The page/post/comment title/content fields should all be shown as HTML in all views.

The page/post/comment editing forms currently just show the raw HTML code, as designed.

comment:11 Changed 3 years ago by tmar

  • Milestone .6 deleted
  • Owner changed from jokalli2 to tmar
  • Status changed from reopened to accepted
  • Summary changed from HTML Entities aren't decoding properly to Show post titles as HTML

comment:12 Changed 3 years ago by sber

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in 0.7.4

Note: See TracTickets for help on using tickets.