** msOWSGetEncodeMetadata() ** ** Equivalent to msOWSPrintEncodeMetadata. Returns en encoded value of the ** metadata or the default value. ** Caller should free the returned string. */
| 865 | ** Caller should free the returned string. |
| 866 | */ |
| 867 | char *msOWSGetEncodeMetadata(hashTableObj *metadata, |
| 868 | const char *namespaces, const char *name, |
| 869 | const char *default_value) |
| 870 | { |
| 871 | const char *value; |
| 872 | char * pszEncodedValue=NULL; |
| 873 | if((value = msOWSLookupMetadata(metadata, namespaces, name))) |
| 874 | pszEncodedValue = msEncodeHTMLEntities(value); |
| 875 | else if (default_value) |
| 876 | pszEncodedValue = msEncodeHTMLEntities(default_value); |
| 877 | |
| 878 | return pszEncodedValue; |
| 879 | } |
| 880 | |
| 881 | |
| 882 | /* |
no test coverage detected