Moodle has several settings that filter or clean code (for example in
Site administration > Security > Site policies and in editor/editor plugins for HTML purifier, allowed tags, allowing EMBED/OBJECT tags, enable trusted content,... ).
Furthermore different browsers have only partial support for different kinds of ways to add svg...
The best way to add pure svg might be to use external files (inside moodle or somewhere in www pages) could be code like
<object data="http://upload.wikimedia.org/wikipedia/commons/5/54/Ford_circles.svg" height="531" width="531">
<param name="src" value="http://upload.wikimedia.org/wikipedia/commons/5/54/Ford_circles.svg" /><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/5/54/Ford_circles.svg/531px-Ford_circles.svg.png" width="531" height="531" />
</object>
that is using a svg image http://upload.wikimedia.org/wikipedia/commons/5/54/Ford_circles.svg for those browsers that can show svg with object tags that validate in XHTML and a fallback image for IE ( < IE9 )
You may need to disable editor from your user profile before adding those object tags (When editing text - Use standard web forms) because media plugin in tinymce may not like this type of object tags.
Adding svg directly to html might need a different doc type (HTML5) but HTML5 support is not yet implemented to moodle.
And using links to external files works in any case...