Changeset 1203001
- Timestamp:
- 07/21/2015 10:05:12 AM (11 years ago)
- Location:
- mobile-app-api/trunk
- Files:
-
- 2 edited
-
library/shoutem-sanitizer.php (modified) (2 diffs)
-
model/class-shoutem-smg-dao.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mobile-app-api/trunk/library/shoutem-sanitizer.php
r1202991 r1203001 447 447 */ 448 448 function rename_tag_pre($opening, $name, $attr, $closing) { 449 if (strcmp($name,'figcaption') == 0) { 449 if (strcmp($name,'se-attachment') == 0) { 450 $name = 'seattachment'; 451 } else if (strcmp($name,'figcaption') == 0) { 450 452 $name = 'p'; 451 453 } else if (strcmp($name,'tr') == 0 && strcmp($opening,'/') == 0) { … … 467 469 */ 468 470 function rename_tag_post($opening, $name, $attr, $closing) { 469 if (strcmp($name,'twitterdiv') == 0) {470 $name = 'div';471 }472 471 if (strcmp($name,'seattachment') == 0) { 473 472 $name = 'se-attachment'; 473 } else if (strcmp($name,'twitterdiv') == 0) { 474 $name = 'div'; 474 475 } 475 476 -
mobile-app-api/trunk/model/class-shoutem-smg-dao.php
r1202991 r1203001 67 67 $img_caption = $img_caption.' '.trim($img_caption_line->wholeText); 68 68 } 69 $replacement_item = "<se attachment id=\"$pid\" type=\"image\" xmlns=\"urn:xmlns:shoutem-com:cms:v1\" />";69 $replacement_item = "<se-attachment id=\"$pid\" type=\"image\" xmlns=\"urn:xmlns:shoutem-com:cms:v1\" />"; 70 70 if ($img_caption) { 71 71 $image['caption'] = $img_caption; … … 84 84 $images []= $image; 85 85 } 86 $replacement = '<se attachment type="gallery" xmlns="urn:xmlns:shoutem-com:cms:v1">'.$replacement_list.'</seattachment>';86 $replacement = '<se-attachment type="gallery" xmlns="urn:xmlns:shoutem-com:cms:v1">'.$replacement_list.'</se-attachment>'; 87 87 $replacement_fragment = $dom->createDocumentFragment(); 88 88 $replacement_fragment->appendXML($replacement);
Note: See TracChangeset
for help on using the changeset viewer.