Just a quick note for myself to escape # character in yaml – Symfony. When i’m trying to load batch data, some of the record seems not imported successfully especially with hash # character. By default, all the string behind the hash # character is treated as comment.
Here’s the example to escape hash # character:-
Advertisements
test.yml
testrow:
subject: "how to escape hash # character"
Just add a double quote for your string and the hash # character will be able to escape.
Related posts:
Symfony: How to query using Criteria OR
Symfony Filter: Change ForeignKey drop down to Text field
How to remove newline character in PHP
PHP: How to convert ISO character (HTMLEntities) to UTF-8?
How to strtolower an array in PHP?
How to downgrade to PHP 5.2 using MacPort
Symfony: PHP Fatal error: Call to a member function setData()
How to hide .svn folders in Eclipse or Aptana
Share this with your friends:-
nice, but I have a trouble: colors:[“#FFF00″,”#FF0FF0”] or subject [#FFF00] , doesnt work!