Problems with & nbsp; in XHTML+RDFa 1.1 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Problems with & nbsp; in XHTML+RDFa 1.1 (/showthread.php?tid=43790) |
Problems with & nbsp; in XHTML+RDFa 1.1 - El Forum - 07-23-2011 [eluser]Razican[/eluser] Hello, I have a project written in XHTML+RDFa 1.1 but The browser sends me an error when I have the profiler enabled. I have modified all the profiler library en MY_Profiler, but there is a section where I can't change anything. I'm talking about the query prrofiling. When using W3C DTD the entity must be written as & #160; but in the query parsing continues saying Where can I find the file where I have to change all declarations with & #160;? Is there another way to do it? I have worked it out changing the return of the run function of the Profiler: Code: return str_replace(' ', ' ', $output); But I don't want to modify the "system" files. I only want to edit them in MY_File.php. NOTE: The space between the & and the nbsp is because if I put it together the forum makes it disapear. Problems with & nbsp; in XHTML+RDFa 1.1 - El Forum - 07-24-2011 [eluser]toopay[/eluser] Find Profiler.php, under libraries folder on your codeigniter system directory. Problems with & nbsp; in XHTML+RDFa 1.1 - El Forum - 07-24-2011 [eluser]Razican[/eluser] Finaly I have changed the Output class, and now it works. I have put that str_replace() just before sending the page to the browser. Problems with & nbsp; in XHTML+RDFa 1.1 - El Forum - 07-24-2011 [eluser]toopay[/eluser] Instead hacking Output.php class as CI core class, i still suggest you to look over (and maybe do a change/extends) above file. Problems with & nbsp; in XHTML+RDFa 1.1 - El Forum - 07-24-2011 [eluser]Razican[/eluser] I tried to extend the profiler, but with no result since I needed to change the run() function, but it would not find the compilers, as they are protected.. Now I have extended the output class, in application/core/My_Output.php and it works, It will even change other nbsp inserted by other parts of the system. |