Wordpress i xhtml

Wordpress i xhtml

offline
  • SSpin 
  • Saradnik foruma
  • Pridružio: 09 Dec 2004
  • Poruke: 6488
  • Gde živiš: Nis -> ***Durlan City***

Kada se kuca neki kod u wordpressu, kako god da ja kuca <a href="" on ce posle cuvanja da dA <a HREF=""

I posle mi html nije validan evo sta kaze :

Citat:Line 59, Column 8: there is no attribute "HREF".
<a HREF="http://www.krstarica.com/">Krstarica</a> je, po mom mišljenju, prednjač..



You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.


Sta da radim... dva sata se ugh... samo mi kazite sta da radim Evil or Very Mad



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
offline
  • PHP developer
  • Pridružio: 22 Mar 2006
  • Poruke: 3745
  • Gde živiš: 127.0.0.1

Ako ti samo taj tag nije validan, tj samo njega "uvecava", nadji gde se echo-uje i uradi str_replace ispred toga Smile

$content = str_replace("HREF","href",$content);



offline
  • SSpin 
  • Saradnik foruma
  • Pridružio: 09 Dec 2004
  • Poruke: 6488
  • Gde živiš: Nis -> ***Durlan City***

Uvecava sve, i SRC i HREF i ALT i TITLE.
Cenim da je procedura ista za sve tagove, mislim... resenje je to sto si napisao jel?

btw, hvala puno Smile

offline
  • PHP developer
  • Pridružio: 22 Mar 2006
  • Poruke: 3745
  • Gde živiš: 127.0.0.1

Jeste to resenje, samo sto ako ima vise tagova ide malo drugacije Smile

$bad = array("IMG","SRC","HREF","ALT","TITLE"); $good = array("img","src","href","alt","title"); $content = str_replace($bad,$good,$content);

e sad, nisam bas siguran kako se zove promenljiva u kojoj je sadrzaj, pa sam lupio $content Smile

Ko je trenutno na forumu
 

Ukupno su 861 korisnika na forumu :: 40 registrovanih, 9 sakrivenih i 812 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: A.R.Chafee.Jr., amaterSRB, babaroga, Bane san, bojank, BORUTUS, darkangel, dozorni, Duh sa sekirom, FileFinder, FOX, Gargantua, HrcAk47, hyla, Ivan001, ivan1973, Jahorina, JOntra, Kibice, Kruger, Kubovac, ljuba, loon123, Metanoja, MikeHammer, milimoj, milos.cbr, milutin134, mnn2, moldway, NoOneEver Dreams, procesor, sasa87, slonic_tonic, sombrero, stagezin, Vlad000, wizzardone, ZetaMan, zlaya011