Created
January 26, 2013 11:08
-
-
Save anonymous/4641759 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test__c test = [select RichText__c from Test__c where id = 'a00G0000008S1SJ']; | |
String altText = 'Some text'; | |
altText += '\r\n'; | |
altText += 'MoreText'; | |
test.RichText__c = '<p><img src="http://www.bob.com/bob.jpg" alt="'+altText+'"></img></p>' ; | |
update test; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment