Zandis Murāns Posted March 26, 2008 Report Share Posted March 26, 2008 Kā lai dekodē tādas HTML entītjas, kurām galā nav semikola? Pārlūks ta tādas parāda, bet html_entity_decode() funkcijas viņas nedekodē. Link to comment Share on other sites More sharing options...
Aleksejs Posted March 26, 2008 Report Share Posted March 26, 2008 respektīvi, ja es ierakstu < nevis < pārlūks vienalga rāda < ? Link to comment Share on other sites More sharing options...
Zandis Murāns Posted March 26, 2008 Author Report Share Posted March 26, 2008 Precīzi! Link to comment Share on other sites More sharing options...
bubu Posted March 26, 2008 Report Share Posted March 26, 2008 Nu ja pieņem, ka ; vietā tekstam jābeidz, piemēram, jāseko atstarpei, tad repleiso &[sazinkas][atstarpe] par &[sazinkas]; un tad lieto parastu php funkciju, kas dekodē entītes. Kur problēma? Link to comment Share on other sites More sharing options...
Zandis Murāns Posted March 26, 2008 Author Report Share Posted March 26, 2008 Par tādu variantu iedomājos, bet nav konkrēti noteikts, kas sekos aiz tās nepabeigtās entītijas. Link to comment Share on other sites More sharing options...
Aleksejs Posted March 26, 2008 Report Share Posted March 26, 2008 Varbūt vienkārši aizvieto visus & ar & neskatoties uz to, kas tur aiz viņa tālāk seko. Link to comment Share on other sites More sharing options...
bubu Posted March 26, 2008 Report Share Posted March 26, 2008 Ja nav konkrēti noteikts, tad tādā gadījumā kas ir <blah? entīte vai ne-entīte? Es šķiet ņemtu Alekseja variantu. Link to comment Share on other sites More sharing options...
Zandis Murāns Posted March 26, 2008 Author Report Share Posted March 26, 2008 Jā. A blahÿblah ? Link to comment Share on other sites More sharing options...
Aleksejs Posted March 26, 2008 Report Share Posted March 26, 2008 bet tā ir tikai ar cipariskajiem, vai ne? tiem, kas ir formā x vai xxx ? Link to comment Share on other sites More sharing options...
Zandis Murāns Posted March 26, 2008 Author Report Share Posted March 26, 2008 Nejūtos stiprs. Link to comment Share on other sites More sharing options...
archux Posted March 28, 2008 Report Share Posted March 28, 2008 a kā var uzlitk ja man iekš db ir <a href> bet, lai to atspoguļo tā pat vai arī < a href< , nevis nolasa html un uzliek tur linku Link to comment Share on other sites More sharing options...
Kavacky Posted March 28, 2008 Report Share Posted March 28, 2008 htmlentities() Link to comment Share on other sites More sharing options...
archux Posted March 28, 2008 Report Share Posted March 28, 2008 Paldies! Link to comment Share on other sites More sharing options...
Recommended Posts