Developer forum

Forum » Development » CustomModuleSettings double quotes removed from value

CustomModuleSettings double quotes removed from value

Kristian Kirkholt
Reply

I have the following control in my custom module_Edit.aspx
<textarea id="txtTwitterWidgetCode" runat="server" title="" ></textarea>

In this field the client pastes his generated twitter widget code.
 

The problem is that DW removes double quotes when saving custom module settings.

I used reflector to inspect the dw code if there is a work around.

But it looks like this is not possible because of the following source code:
public static string Form2XML ....
....
text = Strings.Replace(text, "\"", "", 1, -1, CompareMethod.Binary);

This line of code is always replacing the double quotes from my custom module settings.
 

Anyone know the resolution or workaround to this problem ?


Replies

 
Nicolai Høeg Pedersen
Reply

Yes, DW does that.

 

I've added a new option - so if you add a new hidden field on your _edit.aspx screen called "BypassEncoding" and set it to true, then double quotes will not be removed. TFS#13078

 

Out in next hotfix.

 

BR Nicolai

 
Remi Muller
Reply

Which dw release number would contain this option "BypassEncoding"?

 

 
Nicolai Høeg Pedersen
Reply

8.3.0.4 should have it. It has a build date & time after the commit.

 

BR Nicolai

 
Anders Ebdrup
Reply

Hi Remi,

 

Thank you very much - that did the trick! smiley

 

Best regards, Anders

 

You must be logged in to post in the forum