search for: escaped_string

Displaying 2 results from an estimated 2 matches for "escaped_string".

Did you mean: escape_string
2005 Mar 24
0
AGI commands STDOUT problem
...=== null ? $this->read_bytes : $Bytes; $this->WriteLog("\nReading {$Bytes} bytes response from Asterisk..."); $response = fgets(STDIN, $Bytes); $this->WriteLog("Received response: {$response}"); return $response; } private function WriteStdout($String) { $escaped_string = str_replace("\n", '\n', $String); $this->WriteLog("\nSending string {$escaped_string} to Asterisk..."); $bytes = fwrite(STDOUT, $String); fflush(STDOUT); $this->WriteLog("Wroten bytes to STDOUT: {$bytes}"); return $bytes; } private functio...
2007 Jan 04
2
remove html tags from string in controller, how?
Been searching for a function that can do this, but have onl found a helper function. is there a way to strip all html tags of a string in a controller? Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,