Some Errors:

  • Entity: line 1: parser error : Unescaped '<' not allowed in attributes values in collapse_text_process_child_item()
  • Entity: line 1: parser error : attributes construct error in _collapse_text_process_child_item()
  • Entity: line 1: parser error : Couldn't find end of Start Tag collapse line 1 in _collapse_text_process_child_item()
  • Entity: line 1: parser error : Entity 'uuml' not defined in _collapse_text_process_child_item()
  • Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 1: parser error : Entity 'auml' not defined in _collapse_text_process_child_item() (Zeile 393 von /.../sites/all/modules/collapse_text/collapse_text.module).

Any idea to fix it?

CommentFileSizeAuthor
#2 bugs_collapse_text.pdf249.22 KBSNaKeMe

Comments

pukku’s picture

Hi! I just added a new version (7.x-2.3) which adds a bunch of changes that were made to the 6.x-2.x branch. Included in them is a fix for the problems with HTML entities.

It looks as though one of the errors is due to having a < somewhere in the title. [collapse] tags are now turned into XML tags, so you will need to encode this as &lt;.

Please let me know if the new version solves your problem.

Ricky

SNaKeMe’s picture

StatusFileSize
new249.22 KB

The Parser error are gone away. But the Collapse Text show only "Use the arrow to expand or collapse this section". And in a view section the style is broken. Because the node is using Collapse Text. I use the node view with panels is there a problem when i have more then two collapsed text?

See the pdf attached.

pukku’s picture

Ok, I'm not sure what is going on. Can you send me the raw text that you are entering? Also, what other input filters are being used, and if you are using a WYSIWYG editor, which one?

With regard to views, you need to make sure that views is processing the text with an input filter.

Ricky

SNaKeMe’s picture

Thats the raw text in the node:

<p class="rtejustify">
	Beim Kauf einer Immobilie fallen in der Regel Kaufnebenkosten an. Ein besonderer Posten dieser Kaufnebenkosten ist die Maklerprovision. Diese f&auml;llt in H&ouml;he der orts&uuml;blichen Maklerprovision an. Doch wer wei&szlig; schon was orts&uuml;blich ist und ob hier noch Verhandlungsspielraum besteht? Wir haben in unserem Artikel die wichtigsten Fragen zur Maklerprovision beantwortet und Ihnen zwei &uuml;bersichtliche Tabellen angeh&auml;ngt.</p>
<!--break-->
<p>
	<strong>[collapse collapsed title=Darf der Makler eine Maklerprovision verlangen wenn er Eigent&uuml;mer der Immobilie ist?]</strong></p>
<p style="text-align: justify;">
	Wenn der Makler Eigent&uuml;mer der Immobilie ist darf keine Maklerprovision anfallen. Sie k&ouml;nnen diese sofern schon bezahlt dann zur&uuml;ckfordern. Falls der Makler mit dem Eigent&uuml;mer Verwandt ist kann keine klare Aussage getroffen werden. Weil die Gerichte hier sehr unterschiedlich entscheiden.[/collapse]</p>
<p>
	<strong>[collapse collapsed title=Anspruch auf die Maklerprovision?]</strong></p>
<p style="text-align: justify;">
	<strong>Wann hat der Makler Anspruch auf die Maklerprovision?</strong><br />
	Der Anspruch auf die Maklerprovision ergibt sich aus dem abgeschlossenen Maklervertrag und der Tatsache dass der Makler den K&auml;ufer oder Mieter erfolgreich an den Verk&auml;ufer oder Vermieter vermittelt hat.[/collapse]</p>
<p>
	<strong>[collapse collapsed title=Vorschuss auf die Maklerprovision rechtens?]</strong></p>
<p style="text-align: justify;">
	<strong>Ist ein Vorschuss auf die Maklerprovision rechtens?</strong><br />
	Nein. Ein Vorschuss zu nehmen ist auch nicht seri&ouml;s. Als Kunden k&ouml;nnen Sie Vorsch&uuml;sse innerhalb von vier Jahren zur&uuml;ckfordern. Sofern f&uuml;r Sie bei dem Makler dann noch etwas zu holen ist.[/collapse]</p>
<p>
	<strong>[collapse collapsed title=Maximale Maklerprovision f&uuml;r eine Mietswohnung?]</strong></p>
<p style="text-align: justify;">
	<strong>Welche Maklerprovision darf maximal f&uuml;r die Vermittlung einer Mietswohnung anfallen?</strong><br />
	Laut Wohnraumvermittlungsgesetz d&uuml;rfen maximal bis zu zwei Monats-Netto-Kaltmieten verlangt werden.[/collapse]</p>
<p>
	<strong>[collapse collapsed title=Muss K&auml;ufer oder Verk&auml;ufer die Maklerprovision bezahlen?]</strong></p>
<p style="text-align: justify;">
	<strong>Muss der K&auml;ufer oder der Verk&auml;ufer die Maklerprovision bezahlen?</strong><br />
	Leider gibt es hier keine klare und eindeutige Antwort. Folgende Konstellationen sind denkbar: Die Maklerprovision muss vom K&auml;ufer bezahlt werden Die Maklerprovision muss vom Verk&auml;ufer bezahlt werden Die Maklerprovision muss zu gleichen Teilen vom K&auml;ufer und Verk&auml;ufer bezahlt werden Welche Konstellation Sie betrifft h&auml;ngt sehr stark von den &ouml;rtlichen Gegebenheiten ab.[/collapse]</p>

And so on some more questions with collapse text ...

I only use the CKEditor. Filters just the standard Filters like url to links, br an p, wrong html and html-tags. The Theme i use is Corolla.

pukku’s picture

Hi! Try putting the title in quotes -- that is, instead of:

[collapse collapsed title=Darf der Makler eine Maklerprovision verlangen wenn er Eigent&uuml;mer der Immobilie ist?]

try using:

[collapse collapsed title="Darf der Makler eine Maklerprovision verlangen wenn er Eigent&uuml;mer der Immobilie ist?"]

Both versions work on my D6 test site, but I can't get to my D7 site until later tonight (it's on my home computer). I will see if it also works there.

Incidentally, putting <strong> around the tags probably has no effect on them; instead you should use the class= option and add a css class to your theme to embolden the legend for the fieldset with that class.

Ricky

SNaKeMe’s picture

Thx for your help. Now it works. But one last question: When i quote the title then the quotes are shown also in the title on the node. Is that right? Because it dont look so nice that all my Questions are in a quote. The user could think that this are ironic questions ;-)

SNaKeMe’s picture

With regard to views, you need to make sure that views is processing the text with an input filter.

Can u short discribe how to do that in views?

pukku’s picture

Hi! If this is still true (#6, quotes showing up in the actual text), could you please create another issue about this?

pukku’s picture

Regarding #7, not really. All I can say is that if there is a text input box which has the "Input Format" section below it, this module should work. If it doesn't, then it likely will not work.

pukku’s picture

Assigned: SNaKeMe » pukku
Status: Active » Fixed

Closing as fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.