Because almost everytime I put a new movie my php stop parsing the xml document I made a horrible modification (worst code ever written), please adapt to your coding style and the rules of the programing code, or take it as example. Not tested with 383/384 or 385 bytes strings, just with less length and more length, but was tested OK with words and html elements like " in the middle of the cut. File: upnpsoap.c near Line: 1011 if( comment && (passed_args->filter & FILTER_DC_DESCRIPTION) ) { //ret...
Because almost everytime I put a new movie my php stop parsing the xml document I made a horrible modification, please adapt to your coding style and the rules of the programing code, if you want. Not tested with 383/384 or 385 bytes strings, just with less length and more length, but was tested OK with words and html elements like " in the middle of the cut. File: upnpsoap.c near Line: 1011 if( comment && (passed_args->filter & FILTER_DC_DESCRIPTION) ) { //ret = strcatf(str, "<dc:description>%.384s</dc:description>",...
I think a good method will be back from the end up to the first space, but with more than 3 chars then append three dots. For example Example: Hi how are you?, alongword anotherlongword Back from the end counting chars up to the first (last space), if more than 3 chars was counted, cut at that position (space char position) and append three dots. Result: Hi how are you, alongword...
Another example of a problematic xml document for some xml parsers, look the last ", it's not ended properly due to string truncate. <dc:description>Londres, 1593, reinado de Isabel I Tudor. William Shakespeare, joven dramaturgo de gran talento, necesita urgentemente poner fin a la mala racha por la que está pasando su carrera. Por mucho que lo intenta, y a pesar de la presión de los productores y de los dueños de salas de teatro, no consigue concentrarse en su nueva obra: "Romeo y Ethel, la...
Allow friendly browsing of resources from web page (Access Control Allow Origin)
Invalid XML document using localized NFO files.
Feature: Read year from nfo when no capturedate
Problems parsing NFO file